Harness proD API Help
EPLAN.Harness.API.Occurrences.Workdesk Namespace / OccWdShieldWire Class / Reconnect Method
The grouped pin to reconnect from.
The grouped pin to reconnect to.
Example
In This Topic
    Reconnect Method (OccWdShieldWire)
    In This Topic
    Reconnect this shield from one grouped pin to another.
    Syntax
    public override void Reconnect( 
       IPinBase from,
       IPinBase to
    )

    Parameters

    from
    The grouped pin to reconnect from.
    to
    The grouped 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
    Warning: When you reconnect a shield to a different pin, all subparts (twist, wires) under this shield will be reconnected to the grouped pin too.
    Example
    This example shows how to reconnect a cable shield.
    OccWsShield shield = ...
    
    // The shield is connected to 'fromPin' but you want to connect it to 'toPin'.
    OccWsGroupedPin fromPin = ...
    OccWsGroupedPin toPin = ...
    
    shield.Reconnect(fromPin, toPin);
    See Also