这个可以多次插入
- (defun C:IMP (/ SSel BN BP BP2)
- (setvar "cmdecho" 0)
- (princ "\nSelect items to IMPLODE: ")
- (setq SSel (ssget))
- (setq BN (getstring "\nWhat is block name? "))
- (setq BP (getpoint "\nBase Point of Block:"))
- (command "_block" BN BP SSel "")
- (while
- (setq BP2 (getpoint "\n Insertion Point of Block:"))
- (command "_insert" BN BP2 "" "" ""))
- )
这个用来保存原始物体
- (defun C:IMP (/ SSel BN BP BP2)
- (setvar "cmdecho" 0)
- (princ "\nSelect items to IMPLODE: ")
- (setq SSel (ssget))
- (setq BN (getstring "\nWhat is block name? "))
- (setq BP (getpoint "\nBase Point of Block:"))
- (command "_block" BN BP SSel "")
- (command "_insert" BN BP "" "" "")
- (command "Explode" "l")
- (while
- (setq BP2 (getpoint "\n Insertion Point of Block:"))
- (command "_insert" BN BP2 "" "" ""))
- )
|