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
This commit is contained in:
committed by
Yorik van Havre
parent
0a392c2a3f
commit
7d38cc45ec
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user