本帖最后由 lisperado 于 2018-10-12 22:29 编辑
 - (defun c:ML (/ s)
- (initget "1 2 3 4 Settings")
- (setq s (getkword "\n选择命令 [Line(1)/Circle(2)/Text(3)/Point(4)/Settings] 或<回键> ? : "))
- (if s
- (setq *last-command* (if (= s "Settings")
- '(alert "\n设置等等等。。。")
- ;;; (read (strcat "(ML" s ")")) ; 只可以用在名称ML1,ML2,ML3...格式,不通用!
- (nth (1-(atoi s)) '((Line) (Circle) (Text) (Point)))
- )
- )
- )
- (eval *last-command*)
- )
|