Jim
2015-05-25 14:44 UTC
Autocad can relaunch a command by pressing enter. How does one make this possible when the (command) was issued by a OpenDCL control?
fred_tomke
2015-05-25 19:51 UTC
Hi, Jim, when you work with modeless forms, you can call events from controls which have EventInvoke set to 1 for AllowCommand. Then they are called as commands.
In one case I called it from a button when property EventInvoke is set to 0 (KeepFocus). In the event handler I set some blackboard variables and finally I call a command asynchronously. If the user hits enter again the latest settings are used from the blackboard.
Regards, Fred
Jim
2015-05-25 21:50 UTC
Still looking for way to relaunch an autocad command previously started by an opendcl event. That way pressing enter is faster than pressing a button again.
Commands run from the pull down menu will relaunch on pressing enter. Should this be possible in OpenDCL asynchronous events?
Jim
roy_043
2015-05-26 08:07 UTC
Try using:
dcl-SendString
or:
vla-sendcommand
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "_COMMAND ")
Note the space at the end of the string.
Jim
2015-05-29 21:11 UTC
This works well, Thanks very much!
Jim