Syntax
- attr id = expression
A new attribute can be introduced by "attr" and is evaluated the first time it is encountered in a rule or expression. As in "const", attributes are evaluated only once per generation and rule file. The values of attributes can be externally changed through the inspector or by a map. See also CGA attributes.
Attributes can be annotated to control their presentation in the Inspector. See Annotations.
Examples
Defining an attribute with attr
attr height = 250 // define an attribute "height"
Lot-->extrude(height)