Harness proD API Help
EPLAN.Harness.API.Common Namespace / Extensions Class / SemiAutoRoute Method
Routable occurrence.
Start point of routing.
End point of routing.
Example
In This Topic
    SemiAutoRoute Method (Extensions)
    In This Topic
    Route this routable object between the given control points.
    Syntax
    [Extension()]
    public static void SemiAutoRoute( 
       IRoutable routable,
       IEndPointBase startPoint,
       IEndPointBase endPoint
    )

    Parameters

    routable
    Routable occurrence.
    startPoint
    Start point of routing.
    endPoint
    End point of routing.
    Exceptions
    ExceptionDescription
    Api is not in an initialized state. You can get current state from Status property. If API is uninitialized, you can initialize it by calling Init(String,String[]) method. If API is in failed state, you can not resurrect it.
    The object is in invalid state. Obtain a new one.
    This operation was denied because of your license.
    Thrown when there is no direct routing connection between the given control points.
    Thrown when you try to route a cable wire.
    Example
    This example shows how to use semi-auto route for a cable.
    // Obtain the cable:
    IRoutable cable = ...
    
    // Obtain the start point and the end point.
    OccWsEndControlPoint startCp = ...
    OccWsEndControlPoint endCp = ...
    
    // Route the cable from the start point to the end point.
    try
    {
    	cable.SemiAutoRoute(startCp, endCp);
    }
    catch (Exceptions.NoDirectRoutingConnectionException ex)
    {
    	// Resolve this...
    }
    See Also