Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modifying Commands

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
314 Views, 3 Replies

Modifying Commands

question for the AutoCAD Masters:

 

Is there way to modify an AutoCAD command? I know I can write my own and as well as LISPs, but I'm wondering if there's a way to edit an existing command. In particular here is what I want to do: I would like to add MIRROR to the list of commands in MOCORO. I find myself doing a lot of repetitive copying and mirroring, so having the command in there would be handy, so i don't need to exit the command to perform MIRROR operations.

 

thoughts? 

3 REPLIES 3
Message 2 of 4
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

>> but I'm wondering if there's a way to edit an existing command

Not really edit an existing command, that is not possible.

The chance you have is to first undefine an existing command and create your own app that replaces this command.

So you can create your own _MIRROR command that behaves differently to the standard AutoCAD command. But you need to know that if a user starts the command with a "." (point) before the command name (like _.MIRROR) he starts the AutoCAD internal mirror command, ignoring your replacement.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 4
scot-65
in reply to: Anonymous

If you plan on starting the "list of commands" from the keyboard
then LISP is the preferred method.

Otherwise define a new command in the CUI, and in the macro,
daisy-chain the build-in commands (including their respected options).
Be aware that the behavior of this second method may not be to
your liking and unexpected results may happen. Also, the tool can
only be invoked from any UI element except the keyboard.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Message 4 of 4
pendean
in reply to: Anonymous

LISP... .

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

Post to forums  

Forma Design Contest


AutoCAD Beta