mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
IFC selector now uses "class" as a keyword to get the IFC class to disambiguate between "type" and "class".
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user