BBIM: fix profile joiner for beams & other products

This commit is contained in:
Sigma Dimensions
2023-01-21 01:18:06 +01:00
parent 2257942676
commit 69cee56b7c
@@ -418,7 +418,7 @@ class DumbProfileJoiner:
self.body = copy.deepcopy(body)
material = ifcopenshell.util.element.get_material(element, should_skip_usage=False)
usage = None
if not material or not material.is_a("IfcMaterialProfileSet"):
if not material or (not material.is_a("IfcMaterialProfileSet") and not material.is_a("IfcMaterialProfileSetUsage")):
return
if material.is_a("IfcMaterialProfileSetUsage"):
usage = material