|
I have made a popup list using dcl and autolisp and this popup list is geting its values from a list. The popup list is assigned to a variable to use elsewhere. Every time I run the routine the window shows the popup list with a default value. That makes sense since in the dcl file there is a statement
label = "&xxx";
: popup_list {
key = "pipemat";
value = "0" ;
}
However I want to make it so that each time I run the routine, the popup list displays the value selected from the list last time it run, not the default defined as above in the dcl file.
I seems dcl is not working like autolisp. I tried the following but it is not working
value = (itoa (1+ (vl-position somevar somelist))))
Is there a way to do it? If so, how could that be done?
Thank you |
|