Skip to content

Commit

Permalink
BIM: fixes stirrups placement in ifc export
Browse files Browse the repository at this point in the history
  • Loading branch information
SurajDadral authored and yorikvanhavre committed Jan 6, 2025
1 parent 03c167e commit e15285a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/BIM/ArchRebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ def getRebarData(self,obj):
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
Expand Down

0 comments on commit e15285a

Please sign in to comment.