[I think I might have had something to do with that routine (I certainly
contributed to a thread about something very similar, some time back),
though parts of it are not the way I would do it, at least if I were to do
it now.]
If you want to do exactly what that one does, but specify the difference in
radius from one time around to the next, then you would not ask for the
number of Turns (the 'tu' variable). Instead, you would ask for the
difference in radius, and divide that by the number of segments per turn,
and increment the radius by that amount from one point to the next. Other
aspects would be calculated differently, too, since the criteria would be
different -- especially the figuring of when to stop, since the end would be
determined by reaching the ending radius, not by how many times it had gone
around.
That one makes multiple conical 3D spiral approximations (out of
straight-line segments). It appears you "commented out" the 3DPOLY line and
put in the regular PLINE one, which raises the question whether you want it
to lie flat -- that would simplify the whole thing a lot. And you would ask
for something like "starting" and "ending" radii, rather than "base" and
"top."
Seeing that you commented out the array near the end, do you only want one
spiral? (You didn't comment out the prompt for the number of spirals.)
I also assume you commented out the extrusion radius prompt, and the drawing
and extruding of the circle near the end. If you don't want that part of
it, you would also be able to eliminate the UCS operation near the end,
which is only there to draw the circle in the right orientation for
extruding along the spiral.
Also, if you use a 2D Polyline instead of 3D, you have the option of
approximating the spiral shape more closely by using arc segments instead of
line segments.
So, the most important clarifications in my mind are:
Do you want a flat spiral or a conical 3D spiral?
Do you want one, or more than one?
Do you want curves or straight segments?
[There are various other things that could be specified differently, but
start with those....]
--
Kent Cooper
wrote...
Attached is a routine i found that I have made a few adjustments. Let me
know if this one can be reworked for my request.
Thanks