Delete;
The Delete method deletes an object.
Executing the example requires that the repository contains workspace with the WSP identifier containing object.
Add links to the Andy and Metabase system assemblies.
Sub UserProc;
Var
mb: IMetabase;
wsp: IWxWorkspace;
Shape: IWxShape;
Begin
// Get repository
mb := MetabaseClass.Active;
wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
Shape := wsp.Shapes.Item(0);
Shape.Delete;
(wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing this example the object located in a workspace is deleted.
See also: