attr

Syntax

  • attr id = expression

A new attribute can be introduced by attr keyword. As for constants, attributes are evaluated only once at the beginning of the generation process before any rule is applied.

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

Lot --> extrude(height)

In this topic