 - ;画圆打断 明经 ZZXXQQ 2015.8.21
- (defun c:tt ()
- (setvar "CMDECHO" 0)
- (while (and (setq s1 (entsel "\n选择多段线: "))
- (setq ent (entget(car s1)))
- (= (cdr(assoc 0 ent)) "LWPOLYLINE"))
- (setq ptlst (list))
- (foreach x ent (if (= (car x) 10) (setq ptlst (cons (cdr x) ptlst))))
- (foreach x ptlst
- (entmake (list '(0 . "CIRCLE") (cons 10 x) (cons 40 0.4)))
- (command "_.TRIM" "L" "" x "")
- )
- )
- (setvar "CMDECHO" 1)
- (princ)
- )
|