- (defun c:tt () ; tt(获取块内DOTE图层上全部图元并在块外同样位置新建同样的图元)
- (if (and (setq s1 (car (entsel "\n选择图块: ")))
- (xyp-Etype s1 "insert")
- )
- (progn (xyp-copy s1)
- (setq s0 (entlast))
- (xyp-ExplodeQf s1)
- (setq lst(vl-remove-if '(lambda (x) (equal (xyp-DXF 8 x) "DOTE"))(xyp-Ss2List (xyp-SSelEntnext s0))))
- (xyp-erase lst)
- )
- )
- (princ)
- )
|