mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Fix #4655. profiles is now available as a keyword in the selector syntax.
This commit is contained in:
@@ -186,6 +186,7 @@ Valid keys are:
|
|||||||
"``material`` or ``mat``", "Gets the assigned material, which may be a material set."
|
"``material`` or ``mat``", "Gets the assigned material, which may be a material set."
|
||||||
"``item`` or ``i``", "If the previous key returns a material set, gets the relevant material set items"
|
"``item`` or ``i``", "If the previous key returns a material set, gets the relevant material set items"
|
||||||
"``materials`` or ``mats``", "Gets a list of IfcMaterials assigned directly or indirectly (such as via a material set) to the element"
|
"``materials`` or ``mats``", "Gets a list of IfcMaterials assigned directly or indirectly (such as via a material set) to the element"
|
||||||
|
"``profiles``", "Gets a list of IfcProfileDefs assigned (such as via a material profile) or used (such as in an extrusion) in the element"
|
||||||
"``x``", "Gets the X coordinate of the element's placement"
|
"``x``", "Gets the X coordinate of the element's placement"
|
||||||
"``y``", "Gets the Y coordinate of the element's placement"
|
"``y``", "Gets the Y coordinate of the element's placement"
|
||||||
"``z``", "Gets the Z coordinate of the element's placement"
|
"``z``", "Gets the Z coordinate of the element's placement"
|
||||||
|
|||||||
@@ -970,6 +970,8 @@ class Selector:
|
|||||||
value = ifcopenshell.util.element.get_material(value, should_skip_usage=True)
|
value = ifcopenshell.util.element.get_material(value, should_skip_usage=True)
|
||||||
elif key in ("materials", "mats"):
|
elif key in ("materials", "mats"):
|
||||||
value = ifcopenshell.util.element.get_materials(value)
|
value = ifcopenshell.util.element.get_materials(value)
|
||||||
|
elif key == "profiles":
|
||||||
|
value = ifcopenshell.util.shape.get_profiles(value)
|
||||||
elif key == "styles":
|
elif key == "styles":
|
||||||
value = ifcopenshell.util.element.get_styles(value)
|
value = ifcopenshell.util.element.get_styles(value)
|
||||||
elif key in ("item", "i"):
|
elif key in ("item", "i"):
|
||||||
|
|||||||
Reference in New Issue
Block a user