- ;目录图纸下插入图档里面的块 作者:【KAIXIN】,QQ:295963716
- ;本程序需要KAIXIN通用函数的支持
- (DEFUN C:XX (/ BLK P1)
- (KX-COMA)
- (KX-princA "目录图纸下插入块")
- (apply 'vl-cmdf (list "_.insert" "d:\\1.dwg" "0,0" "1" "" ""));目录可改
- (KX-E (entlast))
- (while (/= (setq blk (KX-str 0 "块名" "" nil nil) ) "")
- (while (setq p1 (getpoint "\n->请指定基点: "))
- (KX-Mk-Insert blk p1 0)
- )
- )
- (apply 'vl-cmdf (list "_.purge" "all" "" "n"))
- (KX-COMB)
- )
|