(defun WIZARD (/ dcl_id
)
(FRAME)
(setq dcl_id (load_dialog
FILE))
(if (not (new_dialog "window" dcl_id) )
(exit))
(action_tile "Velg1" (COMMAND "-layer" "on" "velg"
""))
(action_tile "Velg2" (COMMAND "-layer" "on" "velg1"
""))
(action_tile "accept"
"(done_dialog)")
(start_dialog)
(unload_dialog
dcl_id)
(princ)
)
--
Jim Claypool
href="mailto:jclaypool@kc.rr.com">jclaypool@kc.rr.com
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"ries" <Can
href="mailto:r_van_dijk@hotmail.com">r_van_dijk@hotmail.com> wrote in
message
href="news:f084756.-1@WebX.maYIadrTaRb">news:f084756.-1@WebX.maYIadrTaRb...
someone help me. I'm having trouble reading the outcome of radio buttons into
my lisp-script.
The radio buttons are located in the dcl-file and are to
be read by the function defun buttons. But that doens't work...
Why doesn't this work....
Thnx in advance...
LISP:
(defun SEARCHHOME()
(setq FILE "C:/prestolisp/window.dcl")
(setq WELKOM "C:/prestolisp/welkom.dcl")
)
(defun EMPTY()
(COMMAND
"-layer" "set" "0" "")
(COMMAND "-layer" "off"
"bel" "")
(COMMAND
"-layer" "off" "buitenband" "")
(COMMAND "-layer" "off"
"buitenband1" "")
(COMMAND
"-layer" "off" "buitenband2" "")
(COMMAND "-layer" "off"
"defpoints" "")
(COMMAND
"-layer" "off" "framebuizen" "")
(COMMAND "-layer" "off"
"gsm-houderding" "")
(COMMAND "-layer" "off"
"handvaten" "")
(COMMAND
"-layer" "off" "hartlijnen" "")
(COMMAND "-layer" "off"
"lagers" "")
(COMMAND
"-layer" "off" "opklapbeugel" "")
(COMMAND "-layer" "off"
"plank" "")
(COMMAND
"-layer" "off" "reflector" "")
(COMMAND "-layer" "off"
"rembordje" "")
(COMMAND
"-layer" "off" "remhendel" "")
(COMMAND "-layer" "off"
"remkabel" "")
(COMMAND
"-layer" "off" "remveer" "")
(COMMAND "-layer" "off"
"stuurpen" "")
(COMMAND
"-layer" "off" "velg" "")
(COMMAND "-layer" "off"
"velg1" "")
)
(defun FRAME()
(COMMAND
"-layer" "set" "0" "")
(COMMAND "-layer" "on"
"bel" "")
(COMMAND
"-layer" "off" "buitenband" "")
(COMMAND "-layer" "off"
"buitenband1" "")
(COMMAND
"-layer" "off" "buitenband2" "")
(COMMAND "-layer" "on"
"defpoints" "")
(COMMAND
"-layer" "on" "framebuizen" "")
(COMMAND "-layer" "off"
"gsm-houderding" "")
(COMMAND "-layer" "on"
"handvaten" "")
(COMMAND
"-layer" "on" "hartlijnen" "")
(COMMAND "-layer" "on"
"lagers" "")
(COMMAND
"-layer" "on" "opklapbeugel" "")
(COMMAND "-layer" "on"
"plank" "")
(COMMAND
"-layer" "on" "reflector" "")
(COMMAND "-layer" "on"
"rembordje" "")
(COMMAND
"-layer" "on" "remhendel" "")
(COMMAND "-layer" "on"
"remkabel" "")
(COMMAND
"-layer" "on" "remveer" "")
(COMMAND "-layer" "on"
"stuurpen" "")
(COMMAND
"-layer" "off" "velg" "")
(COMMAND "-layer" "off"
"velg1" "")
)
(defun BUTTONS ()
(FRAME)
(action_tile "Velg1" (COMMAND "-layer" "on" "velg" ""))
(action_tile "Velg2" (COMMAND "-layer" "on" "velg1" ""))
)
(defun HELLO (/ dcl_id )
(setq dcl_id (load_dialog WELKOM))
(if (not (new_dialog "window" dcl_id) ) (exit))
(action_tile "accept" "(done_dialog)")
(start_dialog)
(unload_dialog dcl_id)
(princ)
)
(defun WIZARD (/ dcl_id )
(setq dcl_id (load_dialog FILE))
(if (not (new_dialog "window" dcl_id) ) (exit))
(start_dialog)
(BUTTONS)
(unload_dialog dcl_id)
(princ)
)
(defun c:main (/ dcl_id )
(SEARCHHOME)
(HELLO)
(EMPTY)
(WIZARD)
)
DCL:
window : dialog {
label = "Presto Step Wizard";
: text {
label = "Maak uw keuze";
}
: radio_column {
label
= "Velg soort";
: radio_button {
label = "Velg 1";
mnemonic = "1";
key = "Velg1";
}
: radio_button {
label = "Velg 2";
mnemonic = "2";
key = "Velg2";
}
}
:
column {
: row {
fixed_width = true;
alignment = centered;
ok_button;
: spacer { width = 2; }
key = "accept";
is_default
= true;
fixed_width = true;
cancel_button;
key = "decline";
is_default = true;
fixed_width = true;
: spacer { width = 2; }
help_button;
}
}
}
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"ries" <Tnx
href="mailto:r_van_dijk@hotmail.com">r_van_dijk@hotmail.com> wrote in
message
href="news:f084756.1@WebX.maYIadrTaRb">news:f084756.1@WebX.maYIadrTaRb...
for willing to help me out here...Though AutoCAD pops up an error with you're
resolution, wich I can't quite follow;
Command: error: incorrect request for command list data
(COMMAND
"-layer" "on" "velg" "")
(WIZARD)
Ries.