From e15285ae41bd2a261fd93090a7df03726f39839c Mon Sep 17 00:00:00 2001 From: SurajDadral Date: Fri, 3 Jan 2025 00:24:17 +0530 Subject: [PATCH] BIM: fixes stirrups placement in ifc export Fixes: https://github.com/amrit3701/FreeCAD-Reinforcement/issues/223 --- src/Mod/BIM/ArchRebar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/BIM/ArchRebar.py b/src/Mod/BIM/ArchRebar.py index 4674877bec..83e6f235b0 100644 --- a/src/Mod/BIM/ArchRebar.py +++ b/src/Mod/BIM/ArchRebar.py @@ -158,13 +158,13 @@ class _Rebar(ArchComponent.Component): axis = DraftGeomUtils.getNormal(obj.Base.Shape) if not axis: axis = obj.Base.Placement.Rotation.multVec(FreeCAD.Vector(0,0,-1)) - size = 0 - if father: - size = (ArchCommands.projectToVector(father.Shape.copy(),axis)).Length if hasattr(obj,"Direction"): if not DraftVecUtils.isNull(obj.Direction): axis = FreeCAD.Vector(obj.Direction) axis.normalize() + size = 0 + if father: + size = (ArchCommands.projectToVector(father.Shape.copy(),axis)).Length if hasattr(obj,"Distance"): if obj.Distance.Value: size = obj.Distance.Value