fix get_applicable_entities / get_applicable_types missing schema #6108

This commit is contained in:
Andrej730
2025-02-07 17:52:28 +05:00
committed by Dion Moult
parent a28070afef
commit 59dd105e99
11 changed files with 65 additions and 31 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ def quantify(ifc_file: ifcopenshell.file, elements: set[ifcopenshell.entity_inst
calculator = calculators[calculator]
for ifc_class, qtos in queries.items():
filtered_elements = set()
ifc_classes = [ifc_class] + ifcopenshell.util.type.get_applicable_types(ifc_class)
ifc_classes = [ifc_class] + ifcopenshell.util.type.get_applicable_types(ifc_class, ifc_file.schema)
for ifc_class in ifc_classes:
if ifc_class not in elements_by_classes:
continue