Get name of pending commands

Get name of pending commands

fehrsZBFB9
Advocate Advocate
1,409 Views
1 Reply
Message 1 of 2

Get name of pending commands

fehrsZBFB9
Advocate
Advocate

I'm looking for a way to get the name of a pending command. When  a command is started during user input, the user input is canceled. If the current command was left, the pending command will be started. I would like to detect the pending commands name inside the current running command without leaving it. I found acedIsInputPending to detect if there's a pending command. And I found acedEatCommandThroad to remove the pending command. Furthermore I found out that the queue for the pending commands is called command throat. Are there more functions to interact with the command throat?

 

Thanks in Advance,

Martin

0 Likes
1,410 Views
1 Reply
Reply (1)
Message 2 of 2

tbrammer
Advisor
Advisor
You might try:
  • get the AutoCAD variable CMDNAMES with acedGetVar()
  • AcEditorReactor::commandWillStart() / commandEnded()/commandCancelled()/commandFailed()
You can test the AcEditorReactor using the command REACTORS -> Editor Reactor On [x]   
from <ARX>\Samples\database\ArxDbg
I got the output below on the commandline. I first entered the command "_LINE" and started to draw lines,
then I entered 'CMDNAMES (with ' to start the command transparent) which internally starts the SETVAR command.
 

Befehl: _LINE

   [ED REACTOR] : [Command Will Start: LINE]
Ersten Punkt angeben:
Nächsten Punkt angeben oder [Zurück]: 'CMDNAMES

  [ED REACTOR] : [Command Will Start: SETVAR]
CMDNAMES = "LINE'SETVAR" (schreibgeschützt)
   [ED REACTOR] : [Command Ended: SETVAR]
Nehme LINIE-Befehl wieder auf.

Nächsten Punkt angeben oder [Zurück]:

   [ED REACTOR] : [Command Ended: LINE]

 


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes