IFC selector now uses "class" as a keyword to get the IFC class to disambiguate between "type" and "class".

This commit is contained in:
Dion Moult
2023-03-27 21:47:11 +11:00
parent 1e77562f0f
commit c87911f00e
2 changed files with 8 additions and 1 deletions
@@ -267,7 +267,9 @@ class Selector:
elif value.is_a("IfcMaterialConstituentSet"):
value = value.MaterialConstituents
elif key == "container":
value = ifcopenshell.util.element.get_container(element)
value = ifcopenshell.util.element.get_container(value)
elif key == "class":
value = value.is_a()
elif isinstance(value, ifcopenshell.entity_instance):
attribute = value.get_info().get(key, None)