attr keyword

Synopsis

  • 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 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) A.

In this topic