Code Red => AutoLISP (Vanilla / Visual) => Topic started by: b-rye guy on January 08, 2016, 06:51:45 PM
Title: Load function using open DCL
Post by: b-rye guy on January 08, 2016, 06:51:45 PM
I am trying to learn DCL so I started at aftalisp (http://www.afralisp.net/dialog-control-language/tutorials/dialog-boxes-and-autolisp-part-1.php)
I am having trouble understanding where to put the function lookup into the basic dcl dialog box. Meaning, when user clicks "OK" the lookup is executed. Can someone please advise on where (load "mytestaction.lsp") should go? I have learned that putting it outside of an action_tile will cause the lookup regardless of my choice in the dialog box, and that putting it inside of the OK action_tile will cause the code to break and not run.
Awesome!!! thank you very much. The only change would be to remove the extra parentheses in line 6.
If I am understanding what you did here correctly. You set a variable for done dialog instead of flagging it and then told the program to continue based on the input?
Title: Re: Load function using open DCL
Post by: b-rye guy on January 08, 2016, 09:28:05 PM
((= STATUS 1)(C:LOOKUP)); assumes lookup is already loaded...
)
Just to add a bit of clarity to it I would like to add an alert to the Status 1 condition. It looks like doing so actually breaks the code and stops the lookup due to "too many arguments". Why is this? I also tried adding a new condition for status 1 but then I get an error of their being "too many arguments" again.