VirtualAxisCollection Class — NXOpen Python API Reference 12.0.0 documentation

# VirtualAxisCollection Class

class `NXOpen.Mechatronics.``VirtualAxisCollection`

  Bases: `object`

  Represents a collection of Virtual Axis.

  To obtain an instance of this class, refer to `NXOpen.Mechatronics.PhysicsManager`

  New in version NX10.0.0.

# Methods

Method | Description
--- | ---
CreateVirtualAxisBuilder | Creates a `NXOpen.Mechatronics.VirtualAxisBuilder`.
FindObject | Finds the `NXOpen.Mechatronics.VirtualAxis` with the given name.

# Method Detail

## CreateVirtualAxisBuilder

`VirtualAxisCollection.``CreateVirtualAxisBuilder`

  Creates a `NXOpen.Mechatronics.VirtualAxisBuilder`.

  Signature `CreateVirtualAxisBuilder(objectSrc)`

  Parameters: | objectSrc (`NXOpen.Mechatronics.VirtualAxis`) – `NXOpen.Mechatronics.VirtualAxis` to be edited, if None then create a new one
  Returns: |
  Return type: | `NXOpen.Mechatronics.VirtualAxisBuilder`

  New in version NX10.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## FindObject

`VirtualAxisCollection.``FindObject`

  Finds the `NXOpen.Mechatronics.VirtualAxis` with the given name.

  An exception will be thrown if no object can be found with given name.

  Signature `FindObject(name)`

  Parameters: | name (str) – The name of the `NXOpen.Mechatronics.VirtualAxis`.
  Returns: | `NXOpen.Mechatronics.VirtualAxis` with this name.
  Return type: | `NXOpen.Mechatronics.VirtualAxis`

  New in version NX10.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)