- (defun c:aa (/ ent i num pt10 pt11 ss ssi ty)
- (setq ss (ssget "X" '((0 . "line")(8 . "beam"))))
- (setq i 0)
- (setq num (sslength ss))
- (repeat num
- (progn
- (setq
- ty (ssname ss i)
- ent (entget ty)
- pt10 (cdr (assoc 10 ent))
- pt11 (cdr (assoc 11 ent))
- )
- (setq ssi (ssget "F" (list pt10 pt11) '((8 . "colu"))));
- (if (and ssi (= (sslength ssi) 1))
- (entdel ty)
- )
- (setq i (1+ i))
- )
- )
- (princ)
- )
|