PDA

View Full Version : HELP with a non working Macro



AndyC
10th Nov 2010, 05:45 pm
Can anyone see what the difference is betwen the following two macros.

The first one works and allows me to first insert an incremental number and then a block.

The second, where i have swaped the order around and have tryed to insert the block first does not work. It allows me to insert the block and end simply ends and does not attempt to insert the incremental number.

MACRO 1

^c^c-layer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;-insert;"LB-setting-out-point";sc;"~";;;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setv ar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2) );-insert;"LB-setting-out-point";sc;"~";;


MACRO 2

^c^clayer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;_text;\;;$M=$(+,$(getvar, USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(g etvar,USERR1),$(getvar,USERR2));-insert;"LB-setting-out-point";sc;"~";;

BIGAL
11th Nov 2010, 03:28 am
macro 2 need -layer a layer will pop up the layer dialouge box

AndyC
11th Nov 2010, 10:45 am
Thanks for the response

That was a typo and have correctly added -layer at the start, but the macro still stops after (getvar,USERR2)); and will not run the -insert part of the command.

see amended macro below

^c^c-layer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;_text;\;;$M=$(+,$(get var,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+ ,$(getvar,USERR1),$(getvar,USERR2));-insert;"LB-setting-out-point";sc;"~";;

BIGAL
16th Nov 2010, 03:47 am
(getvar "userr2")