ElectricalStockDeviceCollection Class

class NXOpen.Routing.Electrical.ElectricalStockDeviceCollection

Bases: object

Represents a collection of NXOpen.Routing.Electrical.ElectricalStockDevice (ESD) objects.

To obtain an instance of this class, refer to NXOpen.Routing.RouteManager

New in version NX4.0.2.

Methods

Method Description
AssignStock Assign NXOpen.Routing.Stock to input stock devices.
AutoRouteAll Automatically routes all of the stock devices in the work part.
AutoRouteConnections Automatically routes the selected stock devices.
RemoveStock Removes NXOpen.Routing.Stock from input stock devices.
Unroute Removes all bundle NXOpen.Routing.Stock from input stock devices.
UnrouteAll Removes all bundle NXOpen.Routing.Stock from all stock devices.

Method Detail

AssignStock

ElectricalStockDeviceCollection.AssignStock

Assign NXOpen.Routing.Stock to input stock devices.

The assigned NXOpen.Routing.Stock is a bundle stock, and the routine will perform the bundling calculations. This routine should also be called after performing NXOpen.Routing.Electrical.ElectricalStockDevice.ManuallyRoute().

Signature AssignStock(stockDevices, routeType)

Parameters:

New in version NX5.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

AutoRouteAll

ElectricalStockDeviceCollection.AutoRouteAll

Automatically routes all of the stock devices in the work part.

Routing can be done on pin, component or mixed level and it is based on shortest length (See NXOpen.Routing.Electrical.ElectricalStockDevice for more details).

Signature AutoRouteAll(routeLevel, routeSel)

Parameters:
Returns:

a tuple

Return type:

A tuple consisting of (noOfRoutedStockDevices, errorList). noOfRoutedStockDevices is a int. errorList is a NXOpen.ErrorList. Any errors that occurred during Automatic Routing.

New in version NX6.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

AutoRouteConnections

ElectricalStockDeviceCollection.AutoRouteConnections

Automatically routes the selected stock devices.

Routing can be done on pin, component or mixed level and it is based on shortest length (See NXOpen.Routing.Electrical.ElectricalStockDevice for more details).

Signature AutoRouteConnections(routeLevel, routeSel, stockDevices)

Parameters:
Returns:

a tuple

Return type:

A tuple consisting of (noOfRoutedStockDevices, errorList). noOfRoutedStockDevices is a int. errorList is a NXOpen.ErrorList. Any errors that occurred during Automatic Routing.

New in version NX5.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

RemoveStock

ElectricalStockDeviceCollection.RemoveStock

Removes NXOpen.Routing.Stock from input stock devices.

Removes all segments from input wires and updates harnesses associated to wires, resizes and rebuilds bundle stocks for those harnesses. Deletes the NXOpen.Routing.Wire.

Signature RemoveStock(stockDevices)

Parameters:stockDevices (list of NXOpen.Routing.Electrical.ElectricalStockDevice) –
Returns:
Return type:list of NXOpen.Routing.Electrical.ElectricalStockDevice

New in version NX5.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

Unroute

ElectricalStockDeviceCollection.Unroute

Removes all bundle NXOpen.Routing.Stock from input stock devices.

Removes all segments from input wires and updates harnesses associated to wires, resizes and rebuilds bundle stocks for those harnesses. Deletes the NXOpen.Routing.Wire. Use this when no rebundling is necessary

Signature Unroute(stockDevices)

Parameters:stockDevices (list of NXOpen.Routing.Electrical.ElectricalStockDevice) –
Returns:
Return type:list of NXOpen.Routing.Electrical.ElectricalStockDevice

New in version NX6.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

UnrouteAll

ElectricalStockDeviceCollection.UnrouteAll

Removes all bundle NXOpen.Routing.Stock from all stock devices.

Removes all segments from input wires and updates harnesses associated to wires, resizes and rebuilds bundle stocks for those harnesses. Deletes the NXOpen.Routing.Wire. Use this when no rebundling is necessary

Signature UnrouteAll()

Returns:
Return type:list of NXOpen.Routing.Electrical.ElectricalStockDevice

New in version NX6.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)