Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

POPUP_LIST DEFAULT

2 REPLIES 2
Reply
Message 1 of 3
trathbun
162 Views, 2 Replies

POPUP_LIST DEFAULT

I have a lisp program which contains a popup_list to select from a list of layers. What I would like to know - is there a way to set a particular layer as the default rather than having the first layer in the list always displayed.

Thanks,
Tim Rathbun
2 REPLIES 2
Message 2 of 3
kozmos
in reply to: trathbun

(start_list "popup_list")
(mapcar 'add_list LayerList)
(end_list)
(set_tile "popup_list" (itoa (vl-position LayerName LayerList)))
Message 3 of 3
Anonymous
in reply to: trathbun

Tim, Look at the free downloads area in our TechCenter web-site (see URL in the sig below). In the Dialog Box library, there is a routine called DL_SelectProperty that does a neat job of showing up a list of strings in a list box and also allows multiple or single selection, sorted or un-sorted, with or without defaults. You could use this as a replacement for your popup list if you wish and more importantly, it shows how these stuff are programmed. Regards Rakesh trathbun wrote: > I have a lisp program which contains a popup_list to select from a list of layers. What I would like to know - is there a way to set a particular layer as the default rather than having the first layer in the list always displayed. > > Thanks, > Tim Rathbun -- Please email me your replies. I may not always be observing the posts here. AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost