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

    Parameters

    controlPoint
    Shared control point of the two merged trays.
    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 merge more than two trays.
    Remarks
    There must be exactly two trays meeting in provided control points, otherwise merging trays is not possible and exception will be thrown. Original trays will be deleted and replaced by one new tray.
    Example
    This example shows how to merge trays in a point.
    Workdesk workdesk = ...
    
    // Obtain shared control point
    IOccCableTraySharedPoint point = ...
    
    // Merge trays
    wordesk.MergeCableTraysInPoint(point);
    See Also