lisp program
I have just recently started to write a few small autolisp programs and have
run into a small problem. I want to define a routine that will draw spirals.
By drawing a square spiral using a pline, then doing a fit-curve on it, a
reasonably well defined spiral can be constructed. I want to be able to
prompt the user for the number of turns, width of lines and spacing, etc..
However the problem occurs when I try to have the program calculate each
segment of the pline's length and direction and then draw it on the screen.
If I use the 'while' command, only the last segment is returned, all others
are ignored. I tried using an if-then loop but when the variable used for
counting the # of turns is incremented, it is returned in response to the
pline<endpoint> prompt. There is probably a simple way around this problem,
however my inexperience has
somewhat hampered my efforts. Any help would be appreciated.