1. Fixed typo in previous commit (item 3)

2. Added URL of discussion post / thread
3. Previous commit - Added Landing Depth Control to ArchStairs

Discussion:-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358#p240197
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249409
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249498
This commit is contained in:
paullee
2018-08-10 06:44:07 +08:00
committed by Yorik van Havre
parent 0e6ec613f0
commit 79df4134b0

View File

@@ -267,7 +267,7 @@ class _Stairs(ArchComponent.Component):
if obj.Base.Shape.BoundBox.ZLength:
h = obj.Base.Shape.BoundBox.ZLength
if obj.LandingDepth:
obj.TreadDepth = float(l-(landings*obj.LandingDepthWidthWidth.Value))/(obj.NumberOfSteps-(1+landings))
obj.TreadDepth = float(l-(landings*obj.LandingDepth.Value))/(obj.NumberOfSteps-(1+landings))
else:
obj.TreadDepth = float(l-(landings*obj.Width.Value))/(obj.NumberOfSteps-(1+landings))
obj.RiserHeight = float(h)/obj.NumberOfSteps