- (defun Radio_click(key)
- (set_tile "Scale_All" "0")
- (set_tile "Scale_Long" "0")
- (set_tile "Scale_Turn_In" "0")
- (set_tile "Scale_Turn_Out" "0")
- (mode_tile "Scale" 1)
- (mode_tile "Long" 1)
- (mode_tile "Width" 1)
- (mode_tile "Val_In" 1)
- (mode_tile "Val_Out" 1)
- (set_tile key "1")
- (cond
- ((= key "Scale_All") (mode_tile "Scale" 0))
- ((= key "Scale_Long") (mode_tile "Long" 0) (mode_tile "Width" 0))
- ((= key "Scale_Turn_In") (mode_tile "Val_In" 0))
- ((= key "Scale_Turn_Out") (mode_tile "Val_Out" 0))
- )
- )
- (defun c:main( / dcl_id m)
- (if (< (setq dcl_id (load_dialog "gcad.dcl")) 0)
- (exit)
- )
- (new_dialog "gcad" dcl_id)
- ;(set_tile "Scale_All" "1")
- (Radio_click "Scale_All")
- (action_tile "Scale_All" "(Radio_click $key)")
- (action_tile "Scale_Long" "(Radio_click $key)")
- (action_tile "Scale_Turn_In" "(Radio_click $key)")
- (action_tile "Scale_Turn_Out" "(Radio_click $key)")
- (action_tile "accept" "(setq m (get_tile "rad")) (done_dialog)")
- (start_dialog)
- (unload_dialog dcl_id)
- (princ m)
- (princ)
- )
|