AutoCAD LT Discussion Group Search

Wednesday, August 29, 2007

Align Command

Here's a way to get LT to mimic the align command. Create a toolbar button & use this as a macro..
^C^C_select \_move _p ;\\_rotate _p ;@ _r @ \\

Thanks to...

Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt

for the tip.

Erik

2 comments:

Anonymous said...

Pay attention to the spaces Dean used. They are required for the operation to function correctly.

Other helpful macros we use in our office:

Isolate a Layer:
^C^C_ai_molc;\-layer;off;*;;;

All Layers On:
^C^C-layer;on;*;;

Reload Xref's:
^C^C-xref;r;*;

Anonymous said...

Here's a few layer ones I used:

[_Button("Set Active Layer", "layact.BMP", "layact.BMP")]^C^Cai_molc
[_Button("Change Objects Layer to Anothers", "laychg.BMP", "laychg.BMP")]^C^Cselect;\ai_molc;\change;p;;p;la;$m=$(getvar,clayer);;
[_Button("Change to Current Layer", "laycur.BMP", "laycur.BMP")]^C^Cselect;\change;p;;p;la;$m=$(getvar,clayer);;
[--]
[_Button("Pick Off Layer", "ltpo.BMP", "ltpo.BMP")]^C^Cai_molc;\setenv;oldlayer;$m=$(getvar,clayer);u;_-layer;_off;"$m=$(getenv,oldlayer)";"$m=$(if,$(eq,$(getvar,clayer),$(getenv,oldlayer)),y;,)";
[_Button("Pick Freeze Layer", "ltpf.BMP", "ltpf.BMP")]^C^Csetenv;oldlayer;$m=$(getvar,clayer);ai_molc;\-layer;set;"$m=$(getenv,oldlayer)";freeze;"$m=$(getvar,clayer)";;
[_Button("Pick Lock Layer", "ltpl.BMP", "ltpl.BMP")]^C^Csetenv;oldlayer;$m=$(getvar,clayer);ai_molc;\-layer;set;"$m=$(getenv,oldlayer)";lock;"$m=$(getvar,clayer)";;
[_Button("Pick Unlock Layer", "ltpu.BMP", "ltpu.BMP")]^C^Csetenv;oldlayer;$m=$(getvar,clayer);ai_molc;\-layer;set;"$m=$(getenv,oldlayer)";unlock;"$m=$(getvar,clayer)";;
[_Button("Pick Delete Layer", "laydel.BMP", "laydel.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);ai_molc;\-layer;set;"$m=$(getenv,oldlayer)";lock;*;unlock;"$m=$(getvar,clayer)";;_erase;all;;-layer;unlock;*;;^M;
[_Button("Pick Isolate Layer", "layiso.BMP", "layiso.BMP")]^C^Cai_molc;\setenv;oldlayer;$m=$(getvar,clayer);-layer;off;*;;;