avoid warning for structural analysis entities

regarding spatial hierarchy
This commit is contained in:
Jesusbill
2021-03-15 01:41:29 +01:00
parent 9257f275af
commit fded9b3523
@@ -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):