mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:13:41 +00:00
Fix #2559. Don't consider door and window styles in IFC4X3.
This commit is contained in:
@@ -329,11 +329,14 @@ class IfcImporter:
|
|||||||
if self.ifc_import_settings.has_filter or offset or offset_limit < len(self.elements):
|
if self.ifc_import_settings.has_filter or offset or offset_limit < len(self.elements):
|
||||||
self.element_types = set([ifcopenshell.util.element.get_type(e) for e in self.elements])
|
self.element_types = set([ifcopenshell.util.element.get_type(e) for e in self.elements])
|
||||||
else:
|
else:
|
||||||
self.element_types = set(
|
if self.file.schema in ("IFC2X3", "IFC4"):
|
||||||
self.file.by_type("IfcElementType")
|
self.element_types = set(
|
||||||
+ self.file.by_type("IfcDoorStyle")
|
self.file.by_type("IfcElementType")
|
||||||
+ self.file.by_type("IfcWindowStyle")
|
+ self.file.by_type("IfcDoorStyle")
|
||||||
)
|
+ self.file.by_type("IfcWindowStyle")
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.element_types = set(self.file.by_type("IfcElementType"))
|
||||||
|
|
||||||
if self.ifc_import_settings.has_filter and self.ifc_import_settings.should_filter_spatial_elements:
|
if self.ifc_import_settings.has_filter and self.ifc_import_settings.should_filter_spatial_elements:
|
||||||
self.spatial_elements = self.get_spatial_elements_filtered_by_elements(self.elements)
|
self.spatial_elements = self.get_spatial_elements_filtered_by_elements(self.elements)
|
||||||
|
|||||||
Reference in New Issue
Block a user