I have put together these files.. but can't get them to work..
Any/all help is greatly apreciated.
(defun c:test ( / dcl_file msg )
(setq dcl_file (load_dialog "test"))
(while (< 1 what_now_back)
(new_dialog "test" dcl_file)
(action_tile "accept" "(setq x (get_tile \"brc1\"))")
(start_dialog)
(if (= x "US24x36")
(alert (strcat "You chose the tile with KEY = " US 24x36)) (if (= x "US11x17") (alert (strcat "You chose the tile with KEY = " US 11x17)) (if (= x "US8-1/2x11") (alert (strcat "You chose the tile with KEY = " US 8-1/2x11)) (if (= x "CAN24x36MET") (alert (strcat "You chose the tile with KEY = " CAN 24x36 MET)) (if (= x "CAN11x17IMP") (alert (strcat "You chose the tile with KEY = " CAN 24x36 IMP)) (if (= x "CAN11x17MET") (alert (strcat "You chose the tile with KEY = " CAN 24x36 MET)) ) ) ) ) ) ) ) ) (princ) (princ "\nType <TEST> to run dimension style program") test : dialog { label = "Dimension Settings";
:radio_button {
key = "US24x36";
label = "US 24x36";
}
:radio_button {
key = "US11x17";
label = "US 11x17";
}
:radio_button {
key = "US8-1/2x11";
label = "US 8-1/2x11";
}
:radio_button {
key = "Can24x36MET";
label = "Can 24x36 MET";
}
:radio_button {
key = "Can11x17IMP";
label = "Can 11x17 IMP";
}
:radio_button {
key = "Can11x17MET";
label = "Can 11x17 MET";
}
}
}
}
}
ok_cancel;
}
Any/all help is greatly apreciated.
(defun c:test ( / dcl_file msg )
(setq dcl_file (load_dialog "test"))
(while (< 1 what_now_back)
(new_dialog "test" dcl_file)
(action_tile "accept" "(setq x (get_tile \"brc1\"))")
(start_dialog)
(if (= x "US24x36")
(alert (strcat "You chose the tile with KEY = " US 24x36)) (if (= x "US11x17") (alert (strcat "You chose the tile with KEY = " US 11x17)) (if (= x "US8-1/2x11") (alert (strcat "You chose the tile with KEY = " US 8-1/2x11)) (if (= x "CAN24x36MET") (alert (strcat "You chose the tile with KEY = " CAN 24x36 MET)) (if (= x "CAN11x17IMP") (alert (strcat "You chose the tile with KEY = " CAN 24x36 IMP)) (if (= x "CAN11x17MET") (alert (strcat "You chose the tile with KEY = " CAN 24x36 MET)) ) ) ) ) ) ) ) ) (princ) (princ "\nType <TEST> to run dimension style program") test : dialog { label = "Dimension Settings";
label= "Select Dimension Type";row {
column {
boxed_radio_column {
:radio_button {
key = "US24x36";
label = "US 24x36";
}
:radio_button {
key = "US11x17";
label = "US 11x17";
}
:radio_button {
key = "US8-1/2x11";
label = "US 8-1/2x11";
}
:radio_button {
key = "Can24x36MET";
label = "Can 24x36 MET";
}
:radio_button {
key = "Can11x17IMP";
label = "Can 11x17 IMP";
}
:radio_button {
key = "Can11x17MET";
label = "Can 11x17 MET";
}
}
}
}
}
ok_cancel;
}