 - (defun c:tt ( / box e ll ss ur)
- (vl-load-com)
- (setq e (car (entsel "\n选择块参照:")))
- (vla-getboundingbox (vlax-ename->vla-object e) 'll 'ur)
- (setq box (mapcar 'vlax-safearray->list (list ll ur))
- ss (ssget "w" (car box) (cadr box))
- )
- (command "erase" ss "")
- )
|