Shape2. Shape used as a link. The following can be used as this shape: lines (IWxLink), figured arrows (IWxArrow), figured double arrows (IWxDoubleArrow).
Index2. Index of the Shape2 shape connection point.
Description
The DeglueConnectionPoints method separates points of two objects.
Executing the example requires that repository contains a workspace with the WSP identifier.
Add links to the Andy, Drawing, Metabase system assemblies.
Sub Userproc; Var mb: IMetabase; wsp: IWxWorkspace; Link: IWxLink; Shapes: IWxShapes; Begin // Get workspace mb := MetabaseClass.Active; wsp := mb.ItemById("WSP").Edit As IWxWorkspace; Shapes := wsp.Shapes; Link := Shapes.Item(2) As IWxLink; wsp.DeglueConnectionPoints(Shapes.Item(0), 2, Link, 0); wsp.DeglueConnectionPoints(Shapes.Item(1), 3, Link, 1); //Save changes (Wsp As IMetabaseObject).Save; End Sub Userproc;
Public Shared Sub Main(Params: StartParams); Var mb: IMetabase; wsp: IWxWorkspace; Link: IWxLink; Shapes: IWxShapes; Begin // Get workspace mb := Params.Metabase; wsp := mb.ItemById["WSP"].Edit() As IWxWorkspace; Shapes := wsp.Shapes; Link := Shapes.Item[2] As IWxLink; wsp.DeglueConnectionPoints(Shapes.Item[0], 2, Link, 0); wsp.DeglueConnectionPoints(Shapes.Item[1], 3, Link, 1); //Save changes (Wsp As IMetabaseObject).Save(); End Sub;
After executing the example line connection points are separated from shape connection points.