How to select multiple text in a dialog box to parse through lisp routine

How to select multiple text in a dialog box to parse through lisp routine

dalennea
Enthusiast Enthusiast
5,066 Views
43 Replies
Message 1 of 44

How to select multiple text in a dialog box to parse through lisp routine

dalennea
Enthusiast
Enthusiast

I hope that someone is able to steer me in the right direction. I have created a dialog box that reads in a list of the layers that did not process through a program that I wrote.  Now I built the DCL and have the list of the layers showing up in that dialog box (i.e. list box in DCL) and want to be able to select those layer names either individually or a set and then have them run a routine that will convert the selected layers to the layer that is identified by means of the "radial button".  I have included a pic to hopefully make it clear as to what I want to accomplish... I need some help in how to accomplish this in lisp... 

 

 

Thanks in advance

0 Likes
5,067 Views
43 Replies
Replies (43)
Message 41 of 44

dalennea
Enthusiast
Enthusiast

Is there a solution that would allow you to use -laymrg to accomplish renaming those layers  ?

0 Likes
Message 42 of 44

dalennea
Enthusiast
Enthusiast

When I use this code to change prop to the defined layer... I get the following:

 

 

Application ERROR: Invalid type sent as command input
Application ERROR: Invalid type sent as command input
Application ERROR: Invalid type sent as command input

0 Likes
Message 43 of 44

dalennea
Enthusiast
Enthusiast

Question... I get an error when using the code any clue what I did wrong:  

 

(action_tile "a-flor-strs" "(setq choice $key)")
(setq action (start_dialog))
(cond
((/= action 0)) ;; do nothing
((= choice "a-flor-strs")
(foreach layer layers
(and
(setq ss (ssget "X" (list (cons 8 layer))))
(vl-cmdf "_.chprop" ss "" "_LA" target "")
)
)
)
)

0 Likes
Message 44 of 44

paullimapa
Mentor
Mentor

Was this error ever resolved?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes