Harness proD API Help
EPLAN.Harness.API.Occurrences.Workspace Namespace / OccWsRibbonCable Class / Reconnect Method
The ribbon pin to reconnect from.
The ribbon pin to reconnect to.
Example
In This Topic
    Reconnect Method (OccWsRibbonCable)
    In This Topic
    Reconnect this ribbon cable from one ribbon pin to another.
    Syntax
    public void Reconnect( 
       IPinBase from,
       IPinBase to
    )

    Parameters

    from
    The ribbon pin to reconnect from.
    to
    The ribbon pin to reconnect to.
    Exceptions
    ExceptionDescription
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    The exception that is thrown when there is a problem with the connection of an occurrence.
    Remarks
    All OccWsRibbonCableWires will be unconnected after this operation.
    Example
    This example shows how to reconnect ribbon cable.
    OccWsRibbonCable ribbonCable = ...
    
    // The ribbon cable is connected to 'fromPin' but you want to connect it to 'toPin'.
    OccWsRibbonPin fromPin = ...
    OccWsRibbonPin toPin = ...
    
    ribbonCable.Reconnect(fromPin, toPin);
    See Also