Linking IFCs now also includes spatial elements

This commit is contained in:
Dion Moult
2024-06-14 16:16:00 +10:00
parent 1b41440aba
commit 88494d3379
@@ -1277,7 +1277,10 @@ class LoadLinkedProject(bpy.types.Operator):
self.elements = set(self.file.by_type("IfcElement"))
if self.file.schema in ("IFC2X3", "IFC4"):
self.elements |= set(self.file.by_type("IfcProxy"))
self.elements |= set(self.file.by_type("IfcSite"))
if self.file.schema == "IFC2X3":
self.elements |= set(self.file.by_type("IfcSpatialStructureElement"))
else:
self.elements |= set(self.file.by_type("IfcSpatialElement"))
self.elements -= set(self.file.by_type("IfcFeatureElement"))
self.elements = list(self.elements)