Return to Statement


Group Example

This example demonstrates the creation of two groups from several previously defined objects, as well as how to assign a name to a group using the EDA &NAME.

$$
$$ Declarations
$$
ENTITY/LN(4),CR(2),GRP1,GRP2
$$
$$ Geometry Definition
$$
LN(1)=LINE/-1,-.5,1,-.5
LN(2)=LINE/1,-.5,1,.5
LN(3)=LINE/1,.5,-1,.5
LN(4)=LINE/-1,.5,-1,-.5
CR(1)=CIRCLE/0,0,.5
CR(2)=CIRCLE/0,0,.25
$$
$$ Group Definition
$$
GRP1 =GROUP/LN
GRP2 =GROUP/CR,GRP1
&NAME (GRP2)='GROUP_2'

NOTE: GRP1 which consists of LN(1) through LN(4), becomes a subgroup of GRP2. The EDA &NAME allows you to assign a name to the group as an attribute.