BeginGroup Objects - Groups 

Declaration:

PROCEDURE   BeginGroup
;

Description:

Procedure BeginGroup creates a new group object in a VectorWorks document. Procedure calls subsequent to BeginGroup and before EndGroup will be included in the new group object. BeginGroup may be called repeatedly to created nested groups of objects.

Example:

BeginGroup;
  Rect(-1,1,0.5,0);
  Rect(0,1.5,1,0.5);
  Oval(-1.5,0.5,-0.5,-0.5);
EndGroup;
{creates a group}

BeginGroup;
  Rect(-1,1,0,0.5);
  Rect(-1,0.5,-0.5,0);
  BeginGroup;
    Oval(-0.5,0.5,1,0);
    Oval(0,0,1,-0.5);
  EndGroup;
EndGroup;
{creates a group comprised of 2 rects and 1 group}



  EndGroup Objects - Groups 

Declaration:

PROCEDURE   EndGroup
;

Description:

Procedure EndGroup completes the creation of a new group object in a VectorWorks document. The new group object is then generated in the document.

Example:

BeginGroup;
Rect(-1,1,0.5,0);
Rect(0,1.5,1,0.5);
Oval(-1.5,0.5,-0.5,-0.5);
EndGroup;
{creates a group object}

BeginGroup;
Rect(-1,1,0,0.5);
Rect(-1,0.5,-0.5,0);
BeginGroup;
Oval(-0.5,0.5,1,0);
Oval(0,0,1,-0.5);
EndGroup;
EndGroup;
{creates a group comprised of 2 rects and 1 group}



  Group Objects - Groups 

Declaration:

PROCEDURE   Group
;

Description:

Procedures Group groups selected objects in a VectorWorks document. Any selected objects on the active layer(or any selected objects in the document when in Show-Snap-Modify mode) will be included in the new group object.



Example:

Rect(-1,1,0,0);
Rect(-1,-0.5,0,-1.5);
Group;
{groups the most recently created objects}





  Ungroup Objects - Groups 

Declaration:

PROCEDURE   Ungroup
;

Description:

Procedure Ungroup ungroups selected objects in a VectorWorks document.When Ungroup is called, any selected group objects will be destroyed, reverting to the original component objects.