www.mxdraw.com
|
把一段曲线排序,并首尾连接,合并成一个pl线,连接精度必须在dTol范围内。 如果在dTol范围内不连接,返回NULL,当前只支持PL,LINE,ARC三种
static McDbObjectId Mx_CurvesComposite(double dTol, McDbObjectIdArray& aryId);
参数 |
说明 |
double dTol |
合并精度 |
McDbObjectIdArray& aryId |
对象id数组 |
成功返回新建的对象id
例如: C#代码
MxDrawSelectionSet ss = new MxDrawSelectionSet(); ss.Select(MCAD_McSelect.mcSelectionSetUserSelect, null, null); MxDrawResbuf param = new MxDrawResbuf(); param.AddDouble(2.0); for (int i = 0; i < ss.Count; i++) { param.AddObjectId(ss.Item(i).ObjectID); } MxDrawResbuf ret = (MxDrawResbuf)axMxDrawX1.CallEx("Mx_CurvesComposite", param); if (ret.AtString(0) == "Ok") { Int64 iId = ret.AtObjectId(1); MessageBox.Show(iId.ToString()); }