主要用到函數說明:
function GetCLength() {
var ent = mxOcx.GetEntity("選擇曲線:");
if (ent == null)
return;
var curve;
if (ent.ObjectName == "McDbSpline")
{
curve =ent;
}
else
{
alert("實體類型不對");
return;
}
var curvelen = curve.GetLength2();
alert(curvelen);
}