API Help
Eplan.EplApi.DataModel.E3D Namespace / Connection3D Class / Create Method / Create(Placement3D,Int16,Placement3D,Int16) Method
Placement3D from which connection will start.
Index of Eplan.EplApi.DataModel.ConnectionPointPosition will be the starting point of new connection.
Placement3D which will be connection end.
Index of Eplan.EplApi.DataModel.ConnectionPointPosition will be the ending point of new connection.
Example

In This Topic
    Create(Placement3D,Int16,Placement3D,Int16) Method
    In This Topic
    Creates connection between two 3d placements.
    Syntax

    Parameters

    pStartObject
    Placement3D from which connection will start.
    nStartIndex
    Index of Eplan.EplApi.DataModel.ConnectionPointPosition will be the starting point of new connection.
    pEndObject
    Placement3D which will be connection end.
    nEndIndex
    Index of Eplan.EplApi.DataModel.ConnectionPointPosition will be the ending point of new connection.
    Exceptions
    ExceptionDescription
    Thrown when connection cannot be created.
    Thrown when pStartObject parameter is null.
    Thrown when pEndObject parameter is null.
    Thrown when this object has already been created.
    Remarks
    This method can create connection between connection points of two 3d functions. It also enables user not to specify connection point for one or both connection end. To do this index of value -1 needs to be passed as index of connection point.
    Example
    //connecting two 3d functions using connection points 
    Connection3D oConnection3D = new Connection3D();
    oConnection3D.Create(oFunction3D1, oFunction3D1.ConnectionPointPositions[0].Index, oFunction3D2, oFunction3D2.ConnectionPointPositions[2].Index);
    
    //creating connection between two 3d function and only for one of them a connection point is specified
    Connection3D oConnection3DOneConnectionPoint = new Connection3D();
    oConnection3D.Create(oFunction3D1, oFunction3D1.ConnectionPointPositions[0].Index, oFunction3D2, -1);
    
    
    See Also