- ;;主程序的最后少一个右括号!(defun act ()
- (setq x (atof (get_tile "X"))
- y (atof (get_tile "Y"))
- r (atof (get_tile "R"))
- )
- )
- (defun c:circ (/ x y r id)
- (setq sdt 0
- id (load_dialog "C8_3")
- )
- (if (< id 0) (exit))
- (setq X 50
- Y 50
- R 25
- )
- (if (not (new_dialog "yuan" id))(exit))
- (set_tile "X" (rtos X 2 2))
- (set_tile "Y" (rtos Y 2 2))
- (set_tile "R" (rtos R 2 2))
- (action_tile "accept" "(act)(done_dialog 1)")
- (action_tile "cancel" "(done_dialog -1)")
- (setq sdt (start_dialog))
- (unload_dialog id)
- (if (> sdt 0)
- (command "circle" (list x y) r)
- (princ)
- )
- )
|