Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Designer Class / MergeBundlesInPoint Method
Shared control point of the two merged bundles.
Example
In This Topic
    MergeBundlesInPoint Method
    In This Topic
    Merges bundles in control point provided in argument.
    Syntax
    public void MergeBundlesInPoint( 
       IOccSharedPoint controlPoint
    )

    Parameters

    controlPoint
    Shared control point of the two merged bundles.
    Exceptions
    ExceptionDescription
    Api is not in an initialized state. You can get current state from EPLAN.Harness.API.HpdApi.Status property. If API is uninitialized, you can initialize it by calling EPLAN.Harness.API.HpdApi.Init method. If API is in failed state, you can not resurrect it.
    The object is in invalid state. Obtain a new one.
    Thrown when you try to merge more than two bundles.
    Remarks
    There must be exactly two bundles meeting in provided control points, otherwise merging bundles is not possible and exception will be thrown. Original bundles will be deleted and replaced by one new bundle.
    Example
    This example shows how to merge bundles in a point.
    Workdesk workdesk = ...
    
    // Obtain shared control point
    IOccSharedPoint point = ...
    
    // Merge bundles
    wordesk.MergeBundlesInPoint(point);
    See Also