Sample script: element DEFINE
The only attributes that an INCLUDE element directly inherits from a GROUP that contains it are ROTATE, X and Y. A DEFINE element can be employed to propagate other attribute values from its containing group to an included element.
In this example, a temporary field is created by the DEFINE element with the NAME GroupColour. This contains a STRING value for the COLOR of a group named Arrow. A new temporary GroupColour field is defined to contain the new value for its color each time that Arrow is invoked.
<GROUP NAME="Arrow" WIDTH="2" HEIGHT="2" THICKNESS="0.25" COLOR="{GroupColour}" > <M X="2" Y="0" /> </GROUP> <PAGE > <GROUP TOP="1" LEFT="2" WIDTH="4" HEIGHT="2"> <GROUP TOP="4" LEFT="1" WIDTH="4" HEIGHT="2" > </PAGE> |
Links: