Popup Lists

Discussion in 'AutoCAD' started by RodG, Aug 25, 2003.

  1. RodG

    RodG Guest

    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
     
    RodG, Aug 25, 2003
    #1
  2. RodG

    BillZ Guest

    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
     
    BillZ, Aug 25, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.