TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: domenicomaria on January 28, 2021, 06:36:09 AM
-
Normally
if I press the space bar
Acad executes the last command.
is there a way to obtain that an LSP command (c: XXX type)
becomes the LAST COMMAND, without using it before ?
The question might seem strange. . .
I made with OpenDCL a modeless module that contains buttons that send LSP commands to Acad. . .
If after, I hit enter, Acad doesn't execute the last LSP command (type c: XXX)
But executes the last pure ACAD command (for example copy, delete, line ...)
-
An alternative method would be to trigger the function by sending a string to the command line. CAD would act then like you typed a command .
eg (dcl-SendString "MyFunction\n")
-
From big Lee Mac: http://www.theswamp.org/index.php?topic=56351.msg602161#msg602161 (http://www.theswamp.org/index.php?topic=56351.msg602161#msg602161)
-
An alternative method would be to trigger the function by sending a string to the command line. CAD would act then like you typed a command .
eg (dcl-SendString "MyFunction\n")
Great !
It works !
Thank you very much !
-
From big Lee Mac: http://www.theswamp.org/index.php?topic=56351.msg602161#msg602161 (http://www.theswamp.org/index.php?topic=56351.msg602161#msg602161)
Marco,
be aware that DCL and OpenDCL are completely different !
I use an OpenDCL command 'dcl-SendString'
to send a command to Acad
from an OpenDCL modeless form
. . .
It is similar but not the same !
-
What about vla-sendcommand it sends a string to command line.
-
Is there way to call command just before the last one?
I often use series of only two commands, for example polyline and circle.
It would be great if I could call another, maybe with shift+space...