本帖最后由 ZZXXQQ 于 2013-7-13 12:50 编辑
- (defun c:tt ()
- (setq bz T bgc T)
- (while (or bz bgc)
- (while (progn (initget "w1 w2 w3 w4 w5 ")
- (setq bz (getkword "\n输入标尺寸项: ")))
- (eval (read (strcat "(c:" bz ")")))
- )
- (while (progn (initget "+- +15 00 -15 +2 -2 +4 -4 +10 -10 ++1 +20 -20 ++20 +50 -50 ++5 +11 -11 ++11 ")
- (setq bgc (getkword "\n输入公差: ")))
- (eval (read (strcat "(c:" bgc ")")))
- )
- )
- (princ)
- )
|