From 9d0bbf52a2bcfbda0373a4687c231af317753e34 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 10 Oct 2019 21:13:00 +1100 Subject: [PATCH] Don't include IfcSpace since there can be _lots_ in a large file, and ifc spaces actually have geometry --- src/ifcblenderexport/io_export_ifc/import_ifc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcblenderexport/io_export_ifc/import_ifc.py b/src/ifcblenderexport/io_export_ifc/import_ifc.py index d9efff0739..041c9ce7ec 100644 --- a/src/ifcblenderexport/io_export_ifc/import_ifc.py +++ b/src/ifcblenderexport/io_export_ifc/import_ifc.py @@ -31,7 +31,7 @@ class IfcImporter(): bpy.context.scene.collection.children.link(self.project['blender']) def create_spatial_hierarchy(self): - elements = self.file.by_type('IfcSpatialStructureElement') + elements = self.file.by_type('IfcSite') + self.file.by_type('IfcBuilding') + self.file.by_type('IfcBuildingStorey') while len(self.spatial_structure_elements) < len(elements): for element in elements: parent = element.Decomposes[0].RelatingObject