Ungroup;
The Ungroup method ungroups an object group.
Executing the example requires that repository contains a workspace with the WSP identifier containing group of objects with the Shape3 identifier.
Add links to the Andy, Drawing, Metabase system assemblies.
Sub Userproc;
Var
mb: IMetabase;
ws: IWxWorkspace;
Group: IWxGroup;
Shapes: IWxShapes;
Begin
// Get workspace for editing
mb := MetabaseClass.Active;
ws := mb.ItemById("WSP").Edit As IWxWorkspace;
Shapes := ws.Shapes;
ws.BeginUpdate;
Group := ws.Shapes.FindById("Shape3") As IWxGroup;
Group.Ungroup;
ws.EndUpdate;
(ws As IMetabaseObject).Save;
End Sub Userproc;
After executing the example the group is ungrouped.
See also: