 - ;; 交点排序标注
- ;; 需要e派工具箱(XCAD)的支持:[url=http://xyp1964.ys168.com]http://xyp1964.ys168.com[/url]
- (defun c:tt ()
- (CMDLA0)
- (if (and (setq s1 (car (entsel "\n选择: ")))
- (xyp-curve-check s1)
- (setq ptn (xyp-Get-CurveIntersLeng s1 3))
- )
- (progn
- (setq ptn (xyp-Curve-PtsLengSort s1 ptn nil)
- i 1
- )
- (foreach pt ptn
- (xyp-Cross pt 100 0)
- (xyp-Text 5 pt (itoa i))
- (setq i (1+ i))
- )
- )
- )
- (CMDLA1)
- )
|