Elements may be classified according to multiple systems, so the result of element.classification is always a list – for more detail refer to section 4.4.6, How to use a list of values.
There are two ways to use element classifications in expressions:
-
Searching the list of attached classifications for a name, e.g. one exactly matching “Column” is included:
element.classification includes “Column”
…or that at least one classification name contains the word “Wall”:
element.classification contains “Wall”
-
Using the details of the element classification from a specific system in an expression. The system is named in the same way as other list items, e.g. materials etc:
element.classification("Uniclass 2015")
Once a specific system has been named, there are two pieces of information that can be referenced from the element’s classification:
-
Code
element.classification("Uniclass 2015").code = "EF_40_30"
-
Name
element.classification("Uniclass 2015").name = "Furnishings"
-
Comments
0 comments
Please sign in to leave a comment.