can I use a modeless dialog to throw commands to cmd line while another cmd is r

Started by jmaeding, May 06, 2010, 05:42:25 PM

Previous topic - Next topic

jmaeding

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"

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

jmaeding

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.