Popup Lists

RodG

Usenet Archive
Joined
Aug 25, 2003
Messages
2
Reaction score
0
Greetings - I have a dialog box which displays a popup list of the layers in the current drawing. It displays the current layer but I want to give the user the ability to pick a different layer from the popup list and make it the current layer. I am having trouble figuring out how to pass that user choice to a variable to use in a (setvar "clayer" variable) statement. Any ideas? Knowing me, I am overlooking something obvious. Thanks - Rod
 
Rod,
With the popup set for- multiple_select = false ; The number returned from selecting an item in the list, is the index number of the list. So then:
(setq indx (get_tile "my_popup")
      layrnm (nth (atoi indx) lay_list))
(setvar "clayer" laynm)

Bill
 

Latest threads

Back
Top