- (defun c:tt ()
- "选择非裁剪图块"
- (if (setq ss (ssget '((0 . "INSERT"))))
- (progn
- (setq i -1
- ss1 (ssadd)
- )
- (while (setq e (ssname ss (setq i (1+ i))))
- (if (not (assoc 102 (entget e)))
- (setq ss1 (ssadd e ss1))
- )
- )
- (sssetfirst nil ss1)
- )
- )
- (princ)
- )
- (defun c:tt ()
- "选择裁剪图块"
- (if (setq ss (ssget '((0 . "INSERT"))))
- (progn
- (setq i -1
- ss1(ssadd)
- )
- (while (setq e (ssname ss (setq i (1+ i))))
- (if (assoc 102 (entget e))
- (setq ss1 (ssadd e ss1))
- )
- )
- (sssetfirst nil ss1)
- )
- )
- (princ)
- )
|