yorik wrote: ↑
Tue Jun 19, 2018 1:26 am
Basically at the moment the length of the landing is calculated by taking the total length of the stairs baseline and subtracting the total length of steps. But the stairs tool was never carried very far, it needs a lot of work yet...
I attempt to understand the code, though farrrrrrrr from understanding the whole, it is noted obj.Width.Value is used for the 'landing depth'.
I try introduced 'Landing Depth' property and add in essence the following... prima facia it works... now if 'Landing Depth' is not '0', the landing depth follow this input.
The whole modified file attached (ArchStairs.py), see if it helps and any problem (I do not understand most of other code/calculation) ... I would try an alternative to calculate the stair length / height based on input of individual tread and riser....
Code: Select all
reslength = edge.Length - obj.LandingDepth.Value
reslength = edge.Length - obj.Width.Value
I can only use gedit and without more knowledge in programming best practice, I add 'by paul' to signify the changes made.
set at '0'
set at '1000'
set at '2000'