Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Designer Class / SplitCableTrayInPoint Method
Shared control point of the two merged trays.
Tray which will be split.
Example
In This Topic
    SplitCableTrayInPoint Method
    In This Topic
    Split cable tray in control point provided in argument.
    Syntax
    public void SplitCableTrayInPoint( 
       ICableTrayPoint controlPoint,
       IOccCableTray trayToSplit
    )

    Parameters

    controlPoint
    Shared control point of the two merged trays.
    trayToSplit
    Tray which will be split.
    Exceptions
    ExceptionDescription
    Api is not in an initialized state. You can get current state from EPLAN.Harness.API.Studio.Status property. If API is uninitialized, you can initialize it by calling EPLAN.Harness.API.Studio.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 cable tray in a control point that is on a different cable tray.
    Remarks
    This method will replace the tray with two new trays which will be ending in provided control point. Control point will change its' type to EPLAN.Harness.API.Occurrences.Interfaces.IOccCableTraySharedPoint.
    Example
    This example shows how to split trays in a point.
    Workdesk workdesk = ...
    
    // Obtain shared control point and bundle
    IOccCableTraySharedPoint point = ...
    IOccCableTray tray = ...
    
    // Split bundle
    wordesk.SplitCableTrayInPoint(point, tray);
    See Also