(defun c:KK ()
(setvar "cmdecho" 0);指令執行過程不響應
(princ "\n圖面文字插入圖塊")
(while (and (setq s1 (entsel "\n选择文字:"))
(setqent (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)
)
程式改了,再试试 no function definition: SETQENT
页:
[1]