明经通道 Visual LISP 函数  
vlax-curve-getParamAtPoint
 

返回曲线在指定点的参数

(vlax-curve-getParamAtPoint curve-obj point)

参数

curve-obj

要测量的 VLA 对象。

point

curve-obj.上的三维点表(在 WCS 中)。

返回值

如果成功则返回表示参数的实数,否则返回 nil。

示例

假定 ellipseObj 指向 vlax-curve-getArea 样例中的椭圆。设置 OSNAP 为“切点”并选择直线与椭圆相切的点:

_$ (setq selPt (getpoint))
(7.55765 5.55066 0.0)

获取选定点的参数值:

_$ (vlax-curve-getParamAtPoint ellipseObj selPt)
4.58296

明经通道 版权所有 未经许可 不得传播

 评论