mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
avoid warning for structural analysis entities
regarding spatial hierarchy
This commit is contained in:
@@ -1293,7 +1293,9 @@ class IfcImporter:
|
|||||||
elif element.is_a("IfcOpeningElement"):
|
elif element.is_a("IfcOpeningElement"):
|
||||||
self.opening_collection.objects.link(obj)
|
self.opening_collection.objects.link(obj)
|
||||||
else:
|
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)
|
bpy.context.scene.collection.objects.link(obj)
|
||||||
|
|
||||||
def cast_edge_case_attribute(self, ifc_class, key, value):
|
def cast_edge_case_attribute(self, ifc_class, key, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user