 - (defun c:tt (/ g lp s)
- (if (and (setq s (ssget))
- (setq s (apply 'strcat (mapcar '(lambda(x)(strcat (cdr (assoc 8 (entget x)))","))(vl-remove-if 'listp (mapcar 'cadr (ssnamex s))))))
- (setq s (ssget "X" (list (cons 8 s))))
- )
- (while (progn (princ "\n空格循环切换(ESC退出)")(setq g (grread t 15)))
- (if (equal g '(2 32))
- (if (null lp)
- (progn (setq lp t)(command "hideobjects" s ""))
- (progn (setq lp nil)(command "UNISOLATEOBJECTS" ))
- )
- )
- )
- )
- )
|