 - (defun c:tt ( / e i l n s x )
- (if (setq s (ssget '((0 . "INSERT"))))
- (repeat (setq i (sslength s))
- (if (not (member (setq n (cdr (assoc 2 (entget (ssname s (setq i (1- i))))))) l))
- (progn
- (setq e (tblobjname "block" n)
- l (cons n l)
- )
- (while (setq e (entnext e))
- (setq x (entget e))
- (entmod (subst '(8 . "0") (assoc 8 x) x))
- )
- )
- )
- )
- )
- (command "_.regen")
- (princ)
- )
|