Author Topic: LAST COMMAND  (Read 699 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Bull Frog
  • Posts: 272
LAST COMMAND
« 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 ...)

DanW

  • Mosquito
  • Posts: 17
Re: LAST COMMAND
« Reply #1 on: January 28, 2021, 09:30:13 AM »
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")


domenicomaria

  • Bull Frog
  • Posts: 272
Re: LAST COMMAND
« Reply #3 on: January 28, 2021, 12:49:49 PM »
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 !

domenicomaria

  • Bull Frog
  • Posts: 272
Re: LAST COMMAND
« Reply #4 on: January 28, 2021, 12:53:45 PM »
From big Lee Mac:            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 !

BIGAL

  • Swamp Rat
  • Posts: 830
  • 30 + years of using Autocad
Re: LAST COMMAND
« Reply #5 on: January 28, 2021, 06:45:02 PM »
What about vla-sendcommand it sends a string to command line.
A man who never made a mistake never made anything

android.paranoid

  • Mosquito
  • Posts: 1
Re: LAST COMMAND
« Reply #6 on: April 22, 2021, 06:29:10 AM »
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...