请再再试一下! (defun c:qqqq_1() (if (not (tblsearch "layer" "cen")) (command "_.layer" "_new" "cen" "_color" "1" "cen" "_ltype" "center" "cen" "") ) (command "layer" "s" "cen" "") (if (not (tblsearch "UCS" "NNN")) (command "ucs" "S" "NNN") ) (command "ucs" "v") (setq in (getpoint "\n 请选择文字位置:")) (if in (if (> (cdr(assoc 40 (tblsearch "STYLE" (getvar "TEXTSTYLE")))) 0) (command ".TEXT" in "" "插入文字测试") (command ".TEXT" in "5" "" "插入文字测试") ) ) (command "ucs" "R" "NNN") (command "ucs" "D" "NNN") (prin1) ) |