Greetings,
I want to use this code to update some blocks with attributes upon insertion. Everything seems to work fine except the bit in bold below. It doesn't update until after the code has run so the block doesn't get updated correctly.
The environment variables column and Row, entered via user input are good for the program. Row2 which is calculated using Row does not update until you exit the macro.
^C^Csetenv;column;\setenv;Row;\-insert;pwrsply_Nes_Setup=C:/temptemp/pwrsply_Nes_Setup;s;1;\0;explode;last;-ATTEDIT;Y;FUSETERM;TAGNAME;*;c;$M=$(GETVAR,LASTPOINT);@2.5125<5.7;v;r;FU$M=$(getenv,column)$M=$(getenv,row);;-ATTEDIT;Y;PWRSPLY;TAGNAME;*;c;$M=$(GETVAR,LASTPOINT);@7.5166<3.8;v;r;PU$M=$(getenv,column)$M=$(getenv,row);;setenv;row2;$M=$(+,$(getenv,row),3);-ATTEDIT;Y;FUSETERM;TAGNAME;*;cp;$M=$(GETVAR,LASTPOINT);@3.193<319.8;@0.4193<206.6;;v;r;FU$M=$(getenv,column)$M=$(getenv,row2);
Any help would be appreciated,
Doug
I don't believe the DIESEL macros are meant to be evaluated during the routine, only at the end.
You can try include some double quotes, as suggested on some other posts, but AutoCAD LT may not support a complex macro
I will try a bit more with the double quotes thing.
Thanks for the reply,
Doug