RunCollection Class¶
-
class
NXOpen.Routing.RunCollection¶ Bases:
objectRepresents a collection of
NXOpen.Routing.Runobjects.To obtain an instance of this class, refer to
NXOpen.Routing.RouteManagerNew in version NX4.0.0.
Methods¶
| Method | Description |
|---|---|
| CreateRun | Creates a fully defined NXOpen.Routing.Run object whose From item(s), To item(s), and Member item(s) are assigned to components in the assembly. |
| FindPath | Find a run path connecting all input From items to the To items. |
Method Detail¶
CreateRun¶
-
RunCollection.CreateRun¶ Overloaded method CreateRun
CreateRun(runId, runType, from, to, member)CreateRun(runId, runType, attributes, fromItems, toItems, memberItems)CreateRun(runId, runType, attributes)
-------------------------------------Creates a fully defined
NXOpen.Routing.Runobject whose “From” item(s), “To” item(s), and “Member” item(s) are assigned to components in the assembly.Signature
CreateRun(runId, runType, from, to, member)Parameters: - runId (str) – Unique identifier of the Run
- runType (str) – Type of the Run
- from (list of
NXOpen.NXObject) – Array of “From” items. Must beNXOpen.Routing.Port,NXOpen.Routing.RunorNXOpen.Routing.ControlPoint - to (list of
NXOpen.NXObject) – Array of “To” items. Must beNXOpen.Routing.Port,NXOpen.Routing.RunorNXOpen.Routing.ControlPoint - member (list of
NXOpen.NXObject) – Array of “Member” items. Must beNXOpen.Assemblies.Component,NXOpen.Routing.ISegmentor Routing.Stock
Returns: Return type: New in version NX4.0.0.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
-------------------------------------Creates a
NXOpen.Routing.Runwith items that are not assigned to components in the assembly.Signature
CreateRun(runId, runType, attributes, fromItems, toItems, memberItems)Parameters: - runId (str) – Unique identifier of the Run
- runType (str) – Type of the Run
- attributes (
NXOpen.Routing.CharacteristicList) – Run attributes - fromItems (list of
NXOpen.Routing.RunItem) – Array of “From” items. - toItems (list of
NXOpen.Routing.RunItem) – Array of “To” items. - memberItems (list of
NXOpen.Routing.RunItem) – Array of “Member” items.
Returns: Return type: New in version NX7.5.4.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
-------------------------------------Creates an empty
NXOpen.Routing.Runusing just a unique Run identifier and a type.Signature
CreateRun(runId, runType, attributes)Parameters: - runId (str) – Unique identifier of the Run
- runType (str) – Type of the Run
- attributes (
NXOpen.Routing.CharacteristicList) – Run attributes
Returns: Return type: New in version NX7.5.4.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
-------------------------------------
FindPath¶
-
RunCollection.FindPath¶ Find a run path connecting all input From items to the To items.
Signature
FindPath(source, target)Parameters: - source (list of
NXOpen.NXObject) – Array of from items. Must beNXOpen.Routing.Port,NXOpen.Routing.RunorNXOpen.Routing.ControlPoint - target (list of
NXOpen.NXObject) – Array of to items. Must beNXOpen.Routing.Port,NXOpen.Routing.RunorNXOpen.Routing.ControlPoint
Returns: Array of member items. Must be
NXOpen.Assemblies.Component,NXOpen.Routing.ISegmentor Routing.Stock :rtype: list ofNXOpen.NXObjectNew in version NX8.0.2.
License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)
- source (list of