- (defun c:test ()
- (setq s1 (entsel "\n选择曲线上的点 : ")
- e (car s1)
- pt (cadr s1)
- pt0 (osnap pt "near")
- )
- (setq leng (vlax-curve-getDistAtParam e (vlax-curve-getEndParam e))
- leng1 (vlax-curve-getDistAtPoint e pt0)
- leng2 (- leng leng1)
- )
- (princ "\n总长 = ")
- (princ leng)
- (princ "\n分长1 = ")
- (princ leng1)
- (princ "\n分长2 = ")
- (princ engl2)
- (princ)
- )
|