I would love to have a lisp that automates the process illustrated below in steps 1,2 and 3.
I, however, am just getting my feet wet with lisp; learning all about syntax and "car"s and "cdr"s and strings and variables with Jeff Sanders and the fine folks at Afralisp.
I am seeing much progress and am still as eager and motivated as ever. (MY wife teased me this weekend because on our road trip I had taken printouts of lisp functions to memorize on the road instead of any material from my college classes.)
What would be great is if some one (or someone-s), would give me a tutorial on how to write the perfect lisp for my needs (ie point me in the right direction and help me keep moving along the way by giving clues or direction). That way, even if it takes a while, not only will I get the lisp i need, but it will also be the best kind of learning experience for me.
SO>>>
What I need this "perfect lisp" to do is basically automate my storefront/curtainwall drawing process. Usually (as in step one), I will draw lines the proper height and distance apart according to centerlines ect given to me on the architectural prints.
>>>Then depending on what dimensions I was given I will either offset one way or the other to give the vertical or horizontal it's thickness.
>>> Last I clean up, stretching and trimming and extending as necessary.
Ideally, the lisp would first ask me to define whether the material would be 1-3/4" or 2" or 2-1/4" or 2-1/2" thickness. Then this routine would ask me for a "getpoint" at which time I would pick the centerpoint for the top or bottom or left or right side of the member to be drawn. At some point I would have to select an option from vertical or horizontal... I would also have to "pull" the line in the right direction and then give it a direct distance entry.
Essentially this is very similar to the way the line command already works. It just draws two parallel lines at equal distances from the point you picked.
I also included and example (eg) drawing to show what the finished product is actually made up of.
Any help is greatly appreciated,,, As is this site in general and the pioneers there of!
This is what I got so far
(defun C:DRAFRM()
(EDIT) I obviously can't get the png to look right so included said dwg file as well.