Use schema_identifier to get IFC4X3 schema more precisely

This commit is contained in:
Andrej730
2025-03-14 14:49:19 +05:00
parent 9f78d9881e
commit 2f87029434
11 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ class Attribute(Facet):
return super().filter(ifc_file, elements)
results = []
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(ifc_file.schema)
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(ifc_file.schema_identifier)
entities = {entity.name(): entity for entity in schema.entities()}
def ignore_subtypes(entity):