ObjectSinkCollection Class — NXOpen Python API Reference 12.0.0 documentation

# ObjectSinkCollection Class

class `NXOpen.Mechatronics.``ObjectSinkCollection`

  Bases: `object`

  Represents a collection of Object Sink.

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

  New in version NX7.5.1.

# Methods

Method | Description
--- | ---
CreateObjectSinkBuilder | Creates a `NXOpen.Mechatronics.ObjectSinkBuilder`.
FindObject | Finds the `NXOpen.Mechatronics.ObjectSink` with the given name.

# Method Detail

## CreateObjectSinkBuilder

`ObjectSinkCollection.``CreateObjectSinkBuilder`

  Creates a `NXOpen.Mechatronics.ObjectSinkBuilder`.

  Signature `CreateObjectSinkBuilder(objectSrc)`

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

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## FindObject

`ObjectSinkCollection.``FindObject`

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

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)