OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: jmaeding on May 06, 2010, 05:42:25 PM

Title: can I use a modeless dialog to throw commands to cmd line while another cmd is r
Post by: jmaeding on May 06, 2010, 05:42:25 PM
I recall reading about asynchronous action with modeless dialogs, and it occured to me that would be super handy for throwing whatever to the command line.
I think its been right in front of me but I never noticed.
The application i was thinking of was a way to feed selection sets to commands.
I could have a modeless with several presaved (ssget...) strings built from criteria in the modeless dialog, and click a "send to cmd line" button while in the midlle of another command.
Is that possible?
As Darth Vader would say, that would be "Impressive"
Title: Re: can I use a modeless dialog to throw commands to cmd line while another cmd is r
Post by: owenwengerd on May 06, 2010, 06:24:03 PM
Sure, that's possible.  The only thing you need to worry about is that since you can only send strings (not selection sets), you would need to store the selection set in a variable, then send "!myvariable" to the command line to "send" the selection set indirectly.
Title: Re: can I use a modeless dialog to throw commands to cmd line while another cmd is r
Post by: jmaeding on May 10, 2010, 08:50:53 AM
great.  I was actually thinking of sending a variety of lisp statements that were constructed from criteria in the modeless form.  This should be fun.