Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 3.02 KB

File metadata and controls

39 lines (23 loc) · 3.02 KB

User Defined Attributes {#user-defined-attributes}

User-defined attributes are attributes that are created and defined by the users. Entity Attributes and values can be found in the last column of the Attribute Table under an entity tab, or in a row under the Model tab if they are global attributes.

For more Attributes related functions, see Attribute Functions


#### Entity Attributes

Entity attributes are attributes that are assigned to entities. They can be found in the last column of the Attribute Table in the tab of their associated entities.

Entity attributes can be referenced using function query.Get in within the same node in which the attributes are created and in the downstream nodes that are linked in series with the node.


To attribute an entity or multiple entities:
  1. Write ID/variable name@attributename in the variable declaration box.
  2. In the variable input box, enter the value of the attribute. The value may be a number, a string or a flat list.

![Attribute name type created for the polygons with an assigned value of "floor" can be found in the last column under the Polygons Tab](../../assets/chapter_2_assets/Entity Attributes.jpg)


#### Global Attributes

Global attributes are attributes that are given to the entire model instead of just one or more selected entities. They can be found in a row under the Model tab in the Attribute Table.

Just like entities attributes, global attributes can be referenced within the same node in which the attributes are created and in the downstream nodes that are linked in series with the node. However, it can be referenced using directly @attributename instead of using query.Get function.

Referencing a Global Attribute


To assign a global attribute to the model:
  1. Write@attributename in the variable declaration box.
  2. In the variable input box, enter the value of the attribute. The value may be a number, a string or a list.

![Global Attributes and the Attribute Table](....\assets\chapter_2_assets\Global Attributes.jpg)

See Referencing