Test this code maybe can help you,,,
hi, adesu,, i did test your code but it crashes after the user input on the offset distance,,,
Stairs must adhere to a set of rules. So you must define the rules for the lisp to
work within. This is often the hardest part of the process.
Here is a simple lisp. Just pick the top point of the steps & then the bottom point
of the flight of steps & it will draw a pline.
Do it again to get the second flight of steps.
Note that this is a demonstration and not meant to solve your request exactly.
cab, this is exactly what i needed, if somehow there could be an option for the user to input the "tread" size in my case its 300mm (nosing to nosing) and another one for the nos. of riser say "22" i could then pick the 2 points for the lisp to draw it
here's the step in which we determined the nos. of steps that goes in every storey.
1. say i have a floor to floor height of 3.2meters
2. divide this with the minimum (150mm) to maximum (180mm) riser ht. in this case the best value will be 160mm as this will give me a whole nos. figure, (most of the time this is not the case) but the min. and max is our guide.
3. from here we would determine the nos. of steps, in this case its 10 steps each flight. total = 20 steps.
perhaps, the calculation process of determining the nos. of steps could be supply by the user instead of letting the lisp do it which may be difficult to construct.
something like this.
command: teststair
("\n Provide TREAD width") -->> 300mm
("\n Nos. of RISER required) -->> say 20
("\n pick 1st point) -->> Floor landing (starting point)
("\n pick 2nd point) -->> Landing
; then from here your lisp will run,,,,, is this possible
thanks you so much guys