CollisionBodyCollection Class — NXOpen Python API Reference 12.0.0 documentation

# CollisionBodyCollection Class

class `NXOpen.Mechatronics.``CollisionBodyCollection`

  Bases: `object`

  Represents a collection of Collision Bodies.

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

  New in version NX7.5.1.

# Methods

Method | Description
--- | ---
CreateCollisionBodyBuilder | Creates a `NXOpen.Mechatronics.CollisionBodyBuilder`.
FindObject | Finds the `NXOpen.Mechatronics.CollisionBody` with the given name.

# Method Detail

## CreateCollisionBodyBuilder

`CollisionBodyCollection.``CreateCollisionBodyBuilder`

  Creates a `NXOpen.Mechatronics.CollisionBodyBuilder`.

  Signature `CreateCollisionBodyBuilder(collideBody)`

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

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## FindObject

`CollisionBodyCollection.``FindObject`

  Finds the `NXOpen.Mechatronics.CollisionBody` 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.CollisionBody`.
  Returns: | `NXOpen.Mechatronics.CollisionBody` with this name.
  Return type: | `NXOpen.Mechatronics.CollisionBody`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)