Parameters
- routable
- Routable occurrence.
- bundles
- Bundles for routing.
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.OccurrenceMissingInDocumentException | Thrown when any occurrence is not a part of this document. |
EPLAN.Harness.API.Exceptions.CannotRouteCableWireException | Thrown when you try to route a cable wire. |
EPLAN.Harness.API.Exceptions.OccurrenceIsAlreadyRoutedException | Thrown when you try to route a routable occurrence through a bundle, in which it is already routed. |
// Obtain the wire: IRoutable wire = ... // Obtain the bundles you want to route the wire through. IBundle bundle1 = ... IBundle bundle2 = ... IBundle bundle3 = ... // Route the wire through the bundles. wire.Route(new[] { bundle1, bundle2, bundle3 }.ToList());