这个出错了两次就要重新执行命令,怎么设置成无限出错循环?- (defun c:tt()
- (setvar "cmdecho"0)
- (defun *error*(msg)
- (setq txt(getint "\n加工数量<1>:"))
- (if(= txt nil)
- (setq txt 1))
- (xh))
- (setq txt(getint "\n加工数量<1>:"))
- (if(= txt nil)
- (setq txt 1))
- (setq s(getreal "\n文字高度:"))
- (if (= s nil)
- (setq s 3.5)
- )
- (xh)
- )
- (defun xh()
- (while txt
- (setq pt(getpoint "\n文字位置:"))
- (command "text" "j" "mc" pt s 0 (strcat "数量:" (itoa txt) "Pcs"))
- )
- )
-
|