ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get history of the last used commands

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Micky_SDP
734 Views, 4 Replies

Get history of the last used commands

Hi,

I have the following doubts. It is possibile get the history of the last used commands by ObjectArx?

 

Thank's

Michele

4 REPLIES 4
Message 2 of 5
oliver253m
in reply to: Micky_SDP

I don't think there's a better way, but you could use the COPYHIST command and access the clipboard, or keep a history of commands yourself with an editor reactor.

Message 3 of 5
Micky_SDP
in reply to: oliver253m

Thank's for the reply...

I try to use the COPYHIST, but the clipboard contains the entire contents of the command line and not only the commands used.

 

I would like to replicate the "last input" command Autocad that is present in the right-click menu.

In editor reactor, the names of the commands are in English and not in the installation language of Autocad.

 

Michele

 

Message 4 of 5
oliver253m
in reply to: Micky_SDP

If you use COPYHIST, then you would have to parse the history to find the last command. For the second method, it should be possible to use the lookupCmd() function of AcEdCommandStack to find the command and then the localName() function of the returned AcEdCommand.

Message 5 of 5
Micky_SDP
in reply to: oliver253m

Thank's..

I try to use reactor with lookupCmd() function of AcEdCommandStack and it work fine...

 

Thank's for the help.

Michele

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost