mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Update selector_syntax.rst with query examples
Clarified usage of queries in IfcAnnotation tags with examples.
This commit is contained in:
@@ -257,7 +257,8 @@ nest formulas, for example ``concat(title("foo"), lower("Bar"))`` will produce
|
|||||||
"``join({{separator}}, {{values}})``", "``join(""-"", {{mats.Name}})``", "``Name1-Name2``", "Joins a list of items with a custom separator. By default, all lists a rendered as comma separated."
|
"``join({{separator}}, {{values}})``", "``join(""-"", {{mats.Name}})``", "``Name1-Name2``", "Joins a list of items with a custom separator. By default, all lists a rendered as comma separated."
|
||||||
"``{{value1}}[+-*/]{{value2}}``", "``{{z}}+3``", "``5``", "Does arithmetic. Typical operators such as +, -, \*, and / are allowed and can be mixed with other variables and formatting functions."
|
"``{{value1}}[+-*/]{{value2}}``", "``{{z}}+3``", "``5``", "Does arithmetic. Typical operators such as +, -, \*, and / are allowed and can be mixed with other variables and formatting functions."
|
||||||
|
|
||||||
When using queries in an IfcAnnotation tag surround with backticks.
|
When using queries in an IfcAnnotation tag surround with backticks. Examples:
|
||||||
Examples:
|
|
||||||
````number({{Qto_WallBaseQuantities.Width}}, ",",".")```` or
|
- ````number({{Qto_WallBaseQuantities.Width}}, ",",".")````
|
||||||
````round({{Qto_BuildingElementProxyQuantities.NetVolume}},.1)````
|
- ````round({{Qto_BuildingElementProxyQuantities.NetVolume}},.1)````
|
||||||
|
- ````join(", OVER ", reverse({{material.item.Material.Name}}))````
|
||||||
|
|||||||
Reference in New Issue
Block a user