MotionMethods Class — NXOpen Python API Reference 12.0.0 documentation

# MotionMethods Class

class `NXOpen.Motion.``MotionMethods`

  Bases: `object`

  Represents a `NXOpen.Motion.MotionMethods` class

  To obtain an instance of this class, refer to `NXOpen.Motion.MotionSession`

  New in version NX8.0.0.

# Methods

Method | Description
--- | ---
CopyConnectorParameters | Copies the connector parameters
CopyParameters | Copy parameters from source to destination.
ExportParameters | Export parameters of an entity into a txt file.
ImportParameters | Import parameters of an object into a txt file.
ModelCheck | Check all motion objects

# Method Detail

## CopyConnectorParameters

`MotionMethods.``CopyConnectorParameters`

  Copies the connector parameters

  Signature `CopyConnectorParameters(sourceConnector, destinationConnector)`

  Parameters:

  - sourceConnector (`NXOpen.NXObject`) – Source connector from which parameters are copied
  - destinationConnector (`NXOpen.NXObject`) – Destination connector to which the parameters are copied

  New in version NX8.0.0.

  Deprecated since version NX12.0.0: Use `MotionMethods.CopyParameters()` instead.

  License requirements: mechanisms (“MECHANISMS”)

## CopyParameters

`MotionMethods.``CopyParameters`

  Copy parameters from source to destination.

  Source and Destination must be of the same type. Only objects that support this command in Motion Navigator are supported.

  Signature `CopyParameters(source, destination)`

  Parameters:

  - source (`NXOpen.NXObject`) – Source object from which parameters are copied
  - destination (`NXOpen.NXObject`) – Destination object to which the parameters are copied

  New in version NX12.0.0.

  License requirements: mechanisms (“MECHANISMS”)

## ExportParameters

`MotionMethods.``ExportParameters`

  Export parameters of an entity into a txt file.

  Only objects that support this command in Motion Navigator are supported.

  Signature `ExportParameters(entity, fileName)`

  Parameters:

  - entity (`NXOpen.NXObject`) – entity to export
  - fileName (str) – file to export to

  New in version NX12.0.0.

  License requirements: mechanisms (“MECHANISMS”)

## ImportParameters

`MotionMethods.``ImportParameters`

  Import parameters of an object into a txt file.

  Only objects that support this command in Motion Navigator are supported.

  Signature `ImportParameters(entity, fileName)`

  Parameters:

  - entity (`NXOpen.NXObject`) – entity to import
  - fileName (str) – file to import from

  New in version NX12.0.0.

  License requirements: mechanisms (“MECHANISMS”)

## ModelCheck

`MotionMethods.``ModelCheck`

  Check all motion objects

  Signature `ModelCheck(listWarning)`

  Parameters: | listWarning (bool) – whether to display the checking result if only warnings found without error

  New in version NX8.0.0.

  License requirements: mechanisms (“MECHANISMS”)