RunCollection Class

class NXOpen.Routing.RunCollection

Bases: object

Represents a collection of NXOpen.Routing.Run objects.

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

New 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.Run object 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:
Returns:

Return type:

NXOpen.Routing.Run

New in version NX4.0.0.

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

-------------------------------------

Creates a NXOpen.Routing.Run with items that are not assigned to components in the assembly.

Signature CreateRun(runId, runType, attributes, fromItems, toItems, memberItems)

Parameters:
Returns:

Return type:

NXOpen.Routing.Run

New in version NX7.5.4.

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

-------------------------------------

Creates an empty NXOpen.Routing.Run using just a unique Run identifier and a type.

Signature CreateRun(runId, runType, attributes)

Parameters:
Returns:

Return type:

NXOpen.Routing.Run

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:
Returns:

Array of member items. Must be NXOpen.Assemblies.Component,

NXOpen.Routing.ISegment or Routing.Stock :rtype: list of NXOpen.NXObject

New in version NX8.0.2.

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