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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.