Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redefine an existing autocad command?

Status
Not open for further replies.

treyball3

Programmer
Jun 20, 2001
74
US
Is there a way to redefine an existing command in autocad? I want to have a user double-click on an attribute and have it trigger attedit instead of eattedit. Is this possible? if so, how?
 
Ok, after looking more into this, I can get this to work, however...I want, when the user double clicks, to test what border is being used, if it is a certain border, I want to use attedit, if it is another border, I want it to use eattedit. The problem with this, is I'm using (command ".undefine" ".eattedit") in the acaddoc.lsp, so it loads for every drawing. If the tested title block uses attedit, it's fine, but if it has to use eattedit, then I use (command "redefine" ".eattedit"), which redefines for all open drawings, and then the code doesn't work any longer until the user opens or starts a new drawing. Any ideas on how to solve this problem? Is there a way in VBA to grab what command is being issued, and if it is EATTEDIT, then depending on the border, cancel the command and call ATTEDIT instead?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top