Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do learn lsp or diesel funtions?

2 REPLIES 2
Reply
Message 1 of 3
watchband8
224 Views, 2 Replies

How do learn lsp or diesel funtions?

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!
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: watchband8

> 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®)
Message 3 of 3
Anonymous
in reply to: watchband8

"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!
>
DIESEL is such a small language it's all in your help file. Also see Dietmar
Rudolph's web page:
http://www.crlf.de/Dokumente/Dokumente.html

Enjoy,
Stef
--
mailto: yodersj@ipass.net || Drafter, Leather-worker
http://www.ipass.net/~yodersj/ || Dos, Win, LT
in progress http://computerhowto.homestead.com/
RFC 1855, section 3.1.1, item 10 at http://www.faqs.org/rfcs/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost