IWxConnector.FirstPointAutoCpSelect

Syntax

FirstPointAutoCpSelect: Boolean;

FirstPointAutoCpSelect: boolean;

Description

The FirstPointAutoCpSelect property determines whether automatic point selection is used when connecting the beginning of a connecting object with another shape.

If this property is set to True, the link is bound to one of the perimeter connection points depending on the object position, in fact, connection is provided through the center connection point.

If the property is set to False, the link is always bound to the same object's connection point regardless of the object position.

The default property value is False.

Example

Executing the example requires that repository contains a workspace with the WSP identifier containing two shapes and link between them.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Link: IWxLink;
    Shapes: IWxShapes;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById("WSP").Edit As IWxWorkspace;
    Shapes := ws.Shapes;
    Link := ws.Shapes.Item(2As IWxLink;
    Link.FirstPointAutoCpSelect := True;
    Link.LastPointAutoCpSelect := True;
    (ws As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Link: IWxLink;
    Shapes: IWxShapes;
Begin
    
// Get workspace for editing
    mb := Params.Metabase;
    ws := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    Shapes := ws.Shapes;
    Link := ws.Shapes.Item[
2As IWxLink;
    Link.FirstPointAutoCpSelect := 
True;
    Link.LastPointAutoCpSelect := 
True;
    (ws 
As IMetabaseObject).Save();
End Sub;

After executing this example the link is provided using automatic selection of points.

See also:

IWxConnector