From fded9b352350f92d281a7385001f9f79fc478ddf Mon Sep 17 00:00:00 2001 From: Jesusbill Date: Mon, 15 Mar 2021 01:41:29 +0100 Subject: [PATCH] avoid warning for structural analysis entities regarding spatial hierarchy --- src/ifcblenderexport/blenderbim/bim/import_ifc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifcblenderexport/blenderbim/bim/import_ifc.py b/src/ifcblenderexport/blenderbim/bim/import_ifc.py index 8eee020496..5d3aad8b31 100644 --- a/src/ifcblenderexport/blenderbim/bim/import_ifc.py +++ b/src/ifcblenderexport/blenderbim/bim/import_ifc.py @@ -1293,7 +1293,9 @@ class IfcImporter: elif element.is_a("IfcOpeningElement"): self.opening_collection.objects.link(obj) else: - self.ifc_import_settings.logger.warning("Warning: this object is outside the spatial hierarchy %s", element) + # Avoid watrning for structural analysis entities + if "Structural" not in element.is_a(): # TODO test with the list of structural analysis entities + self.ifc_import_settings.logger.warning("Warning: this object is outside the spatial hierarchy %s", element) bpy.context.scene.collection.objects.link(obj) def cast_edge_case_attribute(self, ifc_class, key, value):