本帖最后由 ZZXXQQ 于 2013-7-18 20:39 编辑
 - (defun c:KK ()
- (setvar "cmdecho" 0) ;指令執行過程不響應
- (princ "\n圖面文字插入圖塊")
- (while (and (setq s1 (entsel "\n选择文字:"))
- (setq ent (entget(car s1)))
- (= (cdr(assoc 0 ent)) "TEXT"))
- (setq fnm (strcat "D:/AA/" (cdr(assoc 1 ent)) ".DWG"))
- (if (findfile fnm)
- (while (setq p1 (getpoint "\n插入點: "))
- (command "insert" fnm p1 "" "" "")
- )
- )
- )
- (princ)
- )
|