> watchband8 wrote in message
news:ef65589.-1@WebX.SaUCah8kaAW...
> Macro with simple commands are easy to do. Can anyone tell me where I can
get a book that will teach me to read and write this language for more
> intricate commands on rel. 2000 lt. ? Anyone's guidance will be
appreciated!
Here's an example of what you can do with DIESEL:
ID_LabelLine [La&bel Line]*^C^C_setenv Help mcBase(Hl_lblob) Label \_ucs _ob
_nea,_mid \_ai_molc _non @ _break _non +
@$M=$(*,$(getvar,textsize),$(+,$(*,$(strlen,$(getenv,label)),.5),.5))<0 _non
@$(*,$(getvar,textsize),$(+,$(strlen,$(getenv,label)),1))<180 _-insert
Base/Dwg/Label_2 _non +
@$(*,$(getvar,textsize),$(*,$(+,$(strlen,$(getenv,label)),1),.5))<0
$(getvar,textsize) +
$(getenv,label);$(if,$(or,$(<,$(index,0,$(getvar,ucsxdir)),0),$(<,$(index,1,
$(getvar,ucsydir)),0),$(=,$(index,1,$(getvar,ucsxdir)),-1)),_rotate _l _non
@ 180 )_ucs _r mc
This is a single macro I named Label Line for my macroCAD program. It breaks
a line depending on the number of characters you enter for your label. The
label is placed in the center of the break at the same angle and then
adjusted to be read easier from the bottom or right side of the page . It
may not work without the VB scripts I've created to setup the drawing
beforehand (i.e. drawing scale and text size) but at least I wanted to show
you that you can do some pretty useful things with DIESEL. As soon as I can,
I'm going to create some simpler but useful macros that don't depend on
drawing setup and post them to my website.
Mark
www.lt-solutions.com (Batch Processing / MEP Drafting for AutoCAD LT®)