Demonstrates uses of the Ungroup statement UNGRP to manipulate several groups. There are three optional Ungroup statements at the end of the program showing different results.
$$
$$ 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
GRP1=GROUP/LN
GRP2=GROUP/CR,GRP1
Ungrouping
If the next statement in the program above was:
UNGRP/TOP,GRP2 GRP2 would be ungrouped, but GRP1 would continue to exist.
UNGRP/GRP2 Both GRP1 and GRP2 would be ungrouped.
UNGRP/GRP1 GRP1 would be ungrouped, and LN(1) through LN(4) would become elements of GRP2.