It seems that this old bug is not yet solved in 2013LT ???
But what is also strange is that the command reacts differently if it's alone under a custom button or among many commands, scripts etc...
See attachment, the last one is the alone command under a custom button.
But I REALLY need the command to work as _ATTEDIT
Any ideas ?
Solved! Go to Solution.
Solved by pendean. Go to Solution.
It's not a bug if you don't know that some commands (and most pop-up commands), when called in a script (or Lisp) or menu macro, default to the command line version (and sometimes the much older "totally different" command). That's one of them. It's by design, someone at Autodesk decided this a very long time ago and it continues.
What exactly are you trying to do with your macro? Post the full string here as well, maybe someone can help you tweak it (if it's an option).
Here's the full version of what was done with AutoCAD 2005 LT, and it worked perfectly...
^C^Cscr;rd-1;setenv;rev-i;\scr;rd-2;lo;d;;-i;REVISION-DETAILS;\;;;;$M=$(upper,$(getenv,rev-i));$M=$(eval,"$(edtime,$(getvar,date),DD"/"MO"/"YYYY)");;lo;r;;$M=$(eval,$(if,$(eq,$(substr,$(getvar,ctab),4,1),"-"),$(substr,$(getvar,ctab),1,$(-,$(strlen,$(getvar,ctab)),4))"_rev-"$(upper,$(getenv,rev-i)),$(substr,$(getvar,ctab),1,$(-,$(strlen,$(getvar,ctab)),4))"_rev-"$(upper,$(getenv,rev-i))));attdia;1;_osmode;2807;attedit;l;_attdia;0;_-insert;REVISION-MARK;\;;;;_attdia;1;
If I have to go through the -ATTEDIT commands there a way after answering all questions to come back to some on-screen selection of the block ?
Thanks.
What is it that ATTEDIT did in LT2005 exactly? That command changed starting in LT2006 or LT2007, so you are going to have to refresh my memory going that far back.
All your macro does is run ATTEDIT, call LAST, then move on with no user input if I read it correctly. Plus, in your screenshot in the first post, you needed to use REPLACE and not CHANGE to edit the value of the attribute (since you know what the new needs to be but don't care about the old).
After the "last" input, it opens the attribute window so the user can input the field "PW"
See attachment
Then goes on with the insertion of REVISION-MARK block.
P.S. I'm more lost then you because it's the first time I have to deal with those mix of scripts, lisp, macros, VBA, etc. that were created many years ago...
Try using EATTEDIT command instead of ATTEDIT, there is no command line version and in a quick test here seemed to work the way you want it to in a macro.
Can't find what you're looking for? Ask the community or share your knowledge.