ElectricalStockDeviceCollection Class¶
-
class
NXOpen.Routing.Electrical.ElectricalStockDeviceCollection¶ Bases:
objectRepresents a collection of
NXOpen.Routing.Electrical.ElectricalStockDevice(ESD) objects.To obtain an instance of this class, refer to
NXOpen.Routing.RouteManagerNew 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.Stockto input stock devices.The assigned
NXOpen.Routing.Stockis a bundle stock, and the routine will perform the bundling calculations. This routine should also be called after performingNXOpen.Routing.Electrical.ElectricalStockDevice.ManuallyRoute().Signature
AssignStock(stockDevices, routeType)Parameters: - stockDevices (list of
NXOpen.Routing.Electrical.ElectricalStockDevice) – - routeType (
NXOpen.Routing.Electrical.ElectricalStockDeviceRouteTypes) –
New in version NX5.0.0.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
- stockDevices (list of
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.ElectricalStockDevicefor more details).Signature
AutoRouteAll(routeLevel, routeSel)Parameters: - routeLevel (
NXOpen.Routing.Electrical.ElectricalStockDeviceRouteLevel) – - routeSel (
NXOpen.Routing.Electrical.ElectricalStockDeviceAutoRouteSel) –
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”)
- routeLevel (
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.ElectricalStockDevicefor more details).Signature
AutoRouteConnections(routeLevel, routeSel, stockDevices)Parameters: - routeLevel (
NXOpen.Routing.Electrical.ElectricalStockDeviceRouteLevel) – - routeSel (
NXOpen.Routing.Electrical.ElectricalStockDeviceAutoRouteSel) – - stockDevices (list of
NXOpen.Routing.Electrical.ElectricalStockDevice) –
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”)
- routeLevel (
RemoveStock¶
-
ElectricalStockDeviceCollection.RemoveStock¶ Removes
NXOpen.Routing.Stockfrom 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.ElectricalStockDeviceNew in version NX5.0.0.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
Unroute¶
-
ElectricalStockDeviceCollection.Unroute¶ Removes all bundle
NXOpen.Routing.Stockfrom 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 necessarySignature
Unroute(stockDevices)Parameters: stockDevices (list of NXOpen.Routing.Electrical.ElectricalStockDevice) –Returns: Return type: list of NXOpen.Routing.Electrical.ElectricalStockDeviceNew in version NX6.0.0.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
UnrouteAll¶
-
ElectricalStockDeviceCollection.UnrouteAll¶ Removes all bundle
NXOpen.Routing.Stockfrom 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 necessarySignature
UnrouteAll()Returns: Return type: list of NXOpen.Routing.Electrical.ElectricalStockDeviceNew in version NX6.0.0.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)