Fix #3578. Support querying surface styles in tools like IfcCSV.

This commit is contained in:
Dion Moult
2023-08-14 11:55:15 +10:00
parent 48cd3b4a11
commit faa5a78b39
3 changed files with 100 additions and 0 deletions
@@ -520,6 +520,10 @@ class Selector:
value = ifcopenshell.util.element.get_type(value)
elif key in ("material", "mat"):
value = ifcopenshell.util.element.get_material(value, should_skip_usage=True)
elif key in ("materials", "mats"):
value = ifcopenshell.util.element.get_materials(value)
elif key == "styles":
value = ifcopenshell.util.element.get_styles(value)
elif key in ("item", "i"):
if value.is_a("IfcMaterialLayerSet"):
value = value.MaterialLayers