Jump to content

need to understand macro


JORYROJ

Recommended Posts

hi all,

i am new in macro and diesel, but i know (about 30%...i guess!) a little about how to use the CUI.

i just want to ask, is there an easy way to understand the relation ship of macro/diesel and autolisp?

if there is a link or a book that you can suggest would be appreciated.thank you

Link to comment
Share on other sites

Kate Morrical writes that "A macro is a text string that combines commands and options for repeated use."

 

To learn more about macros read Kate's Intro to Macros here...http://aucache.autodesk.com/au2009/sessions/5097/AU09_SpeakerHandout_CP214-1.pdf

 

AutoLISP is a sophisticated programming language.

 

Learn more about LISP here...http://www.jefferypsanders.com/index.html

 

Diesel definition: Dumb Interpretatively Evaluated String Expression Language used in AutoCAD.

 

"How to write a Diesel Macro" by Ralph Grabowski....http://www.upfrontezine.com/tailor/tailor17.htm

Link to comment
Share on other sites

Unless you're using "LT", DIESEL will not be 'as' critical to understand... what IS critical to know about macros is the syntax, how to provide an "enter", or "pause for user input," etc.

 

I think you'll find AutoLISP, and Visual LISP to be much more 'complete' languages by comparison to DIESEL. Especially as LISP provides the ability for error checking, more functionality, etc.

 

Sometimes examples help the most... is there a simple macro that you had in mind? Perhaps I can show you two examples of doing the same thing with both DIESEL, and LISP?

Link to comment
Share on other sites

What is it that you are trying to do?

 

A macro and a lisp routine will both get the job done. However, a macro does a "down and dirty" job of it while a lisp routine is usually more elegant. Think brute force versus finesse.

Link to comment
Share on other sites

A macro and a lisp routine will both get the job done. However, a macro does a "down and dirty" job of it while a lisp routine is usually more elegant. Think brute force versus finesse.

 

The irony in that statement, while I think you're right, is that LISP (especially Visual LISP) is SO much more powerful than DIESEL. Anyway, I'm probably getting too far ahead of ourselves at this point. LoL

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...