From 7d38cc45ece66fb7ea4d6931569a61c1470a0def Mon Sep 17 00:00:00 2001 From: David Balch Date: Fri, 1 Aug 2025 08:27:25 +0100 Subject: [PATCH] BIM: Remove wrong IfcType for Column/Beam Removes check on function parameters for height & length (first introduced in commit 5217b24), relying on values assigned in "obj". If those params are present, they're assigned to "obj" anyway, so the check is redundant. Fixes #22585 --- src/Mod/BIM/ArchStructure.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/BIM/ArchStructure.py b/src/Mod/BIM/ArchStructure.py index 129649f310..371f5b2a13 100644 --- a/src/Mod/BIM/ArchStructure.py +++ b/src/Mod/BIM/ArchStructure.py @@ -126,10 +126,7 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name=None): obj.Width = w obj.Length = h - if not height and not length: - obj.IfcType = "Building Element Proxy" - obj.Label = name if name else translate("Arch","Structure") - elif obj.Length > obj.Height: + if obj.Length > obj.Height: obj.IfcType = "Beam" obj.Label = name if name else translate("Arch","Beam") elif obj.Height > obj.Length: