- (defun c:tt ()
- "多段线沿顶点打断"
- (defun PlPtn (e)(mapcar 'cdr(vl-remove-if '(lambda (x) (/= (car x) 10)) (entget e))))
- (setvar "osmode" 0)
- (setq i -1)
- (if (setq ss (ssget '((0 . "LWPOLYLINE"))))
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq ptn (reverse (PlPtn s1)))
- (foreach pt ptn(command "break" (list s1 pt) pt))
- )
- )
- (princ)
- )
|