CAD得到样条线的拟合点数据(网页版)
js代码如下:function GetFitPoints () {
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());
}
}
}
页:
[1]