Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Designer Class / SplitBundleInPoint Method
Shared control point of the two merged bundles.
Bundle which will be split.
Example
In This Topic
    SplitBundleInPoint Method
    In This Topic
    Split bundle in control point provided in argument.
    Syntax

    Parameters

    controlPoint
    Shared control point of the two merged bundles.
    bundleToSplit
    Bundle which will be split.
    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 split bundle in a control point that is on a different bundle.
    Remarks
    This method will replace the bundle with two new bundles which will be ending in provided control point. Control point will change its' type to EPLAN.Harness.API.Occurrences.Interfaces.IOccSharedPoint.
    Example
    This example shows how to merge bundles in a point.
    Workdesk workdesk = ...
    
    // Obtain shared control point and bundle
    IOccSharedPoint point = ...
    IOccBundle bundle = ...
    
    // Split bundle
    wordesk.SplitBundleInPoint(point, bundle);
    See Also