- ;; 交点间隔打断
- (defun c:tt ()
- (CMDLA0)
- (while (setq s1 (car (entsel "\n选择: ")))
- (setq ptn (XYP-GET-CURVEINTERSLENG s1 1)
- ptn (xyp-Curve-PtsLengSort s1 ptn t)
- i 0
- )
- (while (and (setq p1 (nth i ptn))
- (setq p2 (nth (+ i 1) ptn))
- )
- (xyp-BreakE s1 p2 p1)
- (setq i (+ i 2))
- )
- )
- (CMDLA1)
- )
|