View Full Version : List processing from Dialog box
rklee
2006-07-19, 08:51 PM
I have been trying to modify a routine I have that adds a single layer from a list to allow several layers to be added. The layer list is an external file and everything works for adding a single layer, but I have not been able to get this to add two or more at a time. The lisp file loads a dialog box which would have a discipline choice and the layers are then listed accordingly.Any suggestions would be appreciated.
T.Willey
2006-07-19, 09:41 PM
A couple things to look into.
1. Try adding multi_select = true ; to your list_box in your dcl (I think that is the term)
2. Only get the items from you layer list box when the accept button is pick. It will return a string holding all the numbers of what you selected. You will want to turn that into a list, and then use foreach on the list to create your layers.
3. You might want to make all your variables local to the functions. If not per function, then per the main calling function.
Hope that helps.
rklee
2006-07-19, 10:40 PM
Thank you for your input. I edited the posting from my production program and the variable are all local to the main program and there are several disciplines listed. I have tried the multiple_select in the dcl file, the problem I have is getting the list from picking in the dialog to a usable variable in the lisp file. When the pick is made in the dialog, there are actually 4 items there, Layer name, Layer color, Layer linetype, and What it used for. I will see what I can come up with as a subroutine to process the layer list picks.
Thank you
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.