PDA

View Full Version : Lisp??



J-LYLE
17th Feb 2005, 10:19 pm
Hi
Im tring to write a lisp and with my limited knoledge of lisp it is proving to be more challenging then expected. :unsure: What i have is several simple blocks of a support leg system. The width changes depending on what size the flanges are and i only have like 7 or so diffrent sizes. I made blocks of all of those. Then the length of the legs vairy greatly. So what i thought was that i could create a lisp that would ask for flange typ then would insert that base block, then would ask for height and would would draw the legs @ specified height. (legs are real simple, in front elevation 2 pair of 3 paralell lines, in side elevation 2 pair of 2 lines)+Base pads

Problem is like i said b4 my knoledge of lisp is limited and real basic. Does anyone think that this is a probable lisp? Where can i find some GOOD examples of "if" "progn" or a good tutorial :huh:
Any help or comments welcome and apriecated. Thanks :)

CarlB
18th Feb 2005, 12:24 am
Yes that is easily handle by lisp. In addition to 'if' and 'progn', get familiar with 'polar' and 'cond'. These are all in AutoCAD help.

You might want tohave a lisp function guide handy, such as from http://gimel.inf.bi.ruhr-uni-bochum.de/teaching/course/bauing/cad/download/cad/reference/AlispRef.pdf

A few places for tutorials, tips, examples. See

www.afralisp.com
http://klobouk.fsv.cvut.cz/~chour/Lisp/Chapter%208.htm
http://yola.tu-graz.ac.at/autocad/news/faq/autolisp.html
http://www.smadsen.com/

Good luck!!

paulmcz
18th Feb 2005, 09:15 pm
Check your PM!
Paul.