下面是从屏幕上拾取一条样条曲线并显示其有多少个拟合点的代码片段:
-
- dim splineObj as AcadEntity
- dim pickedPoint as Variant
- ThisDrawing.Utility.GetEntity splineObj,pickedPoint
- Msgbox "The selected spline has "&splineObj.NumberofFitPoints&" fitpoints"
但是运行时老是提示“类型不匹配”,请问是什么原因?请知道的朋友指导一下,非常感谢!
|