Frustrating AutoCAD (LT) macros

Feb 17, 2004 1 Replies

I sure wish AutoCAD and AutoCAD LT worked the same.



I have a complex macro I use in LT which uses an attribute to label a line (i.e. labeling a pipe "HWS"). It breaks the line (per size of the label), sets the proper layers and rotation angle (along line horizontally or right-read), and so forth.



Here is the macro (watch for wrap, LOL!)...



============ ID_LabelLine [La&bel Line]*^C^C_setenv Label \_ucs _ob _nea,_mid \_ai_molc _non @ _break _non @$M=$(*,$(getvar,textsize),$(+,$(*,$(strlen,$(getenv,label)),.5),.5))


Oops. That should have been: (setenv "Label" (getstring "Label Value: ")). But it still won't work.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required