- (defun c:tt ()
- (setq dist (udist 3 "" "距离<输入或鼠标直接量取>" dist nil))
- (if (and (setq s1 (car (entsel "\n选择: ")))
- (xyp-curve-check s1)
- )
- (progn
- (redraw s1 3)
- (while (setq p1 (getpoint "\n基点<退出>: "))
- (setq pt (vlax-curve-getclosestpointto s1 p1))
- (xyp-faxian s1 pt dist)
- )
- (redraw s1 4)
- )
- )
- (princ)
- )
|