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?