怎样得到样条线的拟合点数据?
MxDraw网页开发|黄洪辉|2018-05-04 15:54
-
回答:
var ent = mxOcx.GetEntity("选择样条线"); if (ent == null) return; if (ent.ObjectName == "McDbSpline"){ var spl =ent; var fitPoints = spl.GetFitPoints(); for (var i = 0; i < fitPoints.Count; i++) { var pt = fitPoints.Item(i); alert(pt.x.toString() + "," + pt.y.toString()); } }