[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.
[Extension()] public static void SemiAutoRoute( IRoutable routable, IEndPointBase startPoint, IEndPointBase endPoint )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.HpdApiNotInitializedException | 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. |
EPLAN.Harness.API.Exceptions.ObjectInvalidException | The object is in invalid state. Obtain a new one. |
EPLAN.Harness.API.Exceptions.LicensingErrorException | This operation was denied because of your license. |
EPLAN.Harness.API.Exceptions.ArgumentNullException | |
EPLAN.Harness.API.Exceptions.NoDirectRoutingConnectionException | Thrown when there is no direct routing connection between the given control points. |
EPLAN.Harness.API.Exceptions.CannotRouteCableWireException | Thrown when you try to route a cable wire. |
// 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... }