From 4f6e2586e122eeed46323a46fac4c36e14ec3405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Tue, 26 Nov 2024 10:41:53 -0300 Subject: [PATCH] Fix #5727 --- src/bonsai/bonsai/tool/model.py | 2 +- .../ifcopenshell/api/material/assign_material.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/tool/model.py b/src/bonsai/bonsai/tool/model.py index 5ee1ff193d..223ef60f69 100644 --- a/src/bonsai/bonsai/tool/model.py +++ b/src/bonsai/bonsai/tool/model.py @@ -618,7 +618,7 @@ class Model(bonsai.core.tool.Model): elif material.is_a("IfcMaterialLayerSet"): axis = ifcopenshell.util.element.get_pset(element, "EPset_Parametric", "LayerSetDirection") if axis is None: - if element.is_a() in ["IfcSlabType", "IfcRoofType", "IfcRampType", "IfcPlateType"]: + if element.is_a() in ["IfcSlabType", "IfcRoofType", "IfcRampType", "IfcPlateType", "IfcCovering", "IfcFurniture"]: axis = "AXIS3" else: axis = "AXIS2" diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py index 7f4259143a..5303fdba56 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py @@ -193,6 +193,8 @@ class Usecase: "IfcRamp", "IfcPlate", "IfcPlateStandardCase", + "IfcCovering", + "IfcFurniture", ] for product in self.products: element_type = ifcopenshell.util.element.get_type(product)