 - ;; 削铁如泥;; 需要e派工具箱(XCAD)的支持:[url]http://yunpan.cn/QXQKsW9gAPmpF[/url]
- (defun c:tt ()
- (xyp-CMDLA0)
- (if (and (setq s0 (car (entsel "\n选择: ")))(xyp-curve-check s0))
- (progn
- (setq p1 (xyp-9pt s0 1)p9 (xyp-9pt s0 9)i -1)
- (if (setq ss (ssget "c" p1 p9 '((0 . "*LINE,ARC,CIRCLE,ELLIPSE"))))
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (if (and (not (equal s0 s1)) (xyp-get-Inters s0 s1 0))
- (progn(xyp-BreakWith s0 s1)(xyp-SubUpd (entlast) 62 2)))))))
- (xyp-CMDLA1)
- )
|