DatabaseObjectManager Class — NXOpen Python API Reference 12.0.0 documentation

# DatabaseObjectManager Class

class `NXOpen.PDM.``DatabaseObjectManager`

  Bases: `NXOpen.TransientObject`

  This class is used for retrieving PDM database objects.

  Use `PDM.PdmSession.GetDatabaseObjectManager()` to get the instance of this class.

  New in version NX11.0.0.

# Methods

Method | Description
--- | ---
Dispose | Free resources associated with the instance.
FindObjects | This API finds database objects in the Teamcenter database using a Teamcenter saved query.
NewDatabaseobjects | This API constructs a new `NXOpen.PDM.DatabaseObjects` object.
NewFindcriteria | This API constructs an array of empty `NXOpen.PDM.FindCriteria` objects.

# Method Detail

## Dispose

`DatabaseObjectManager.``Dispose`

  Free resources associated with the instance.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX11.0.0.

  License requirements: None.

## FindObjects

`DatabaseObjectManager.``FindObjects`

  This API finds database objects in the Teamcenter database using a Teamcenter saved query.

  Signature `FindObjects(findCriterias)`

  Parameters: | findCriterias (list of `NXOpen.PDM.FindCriteria`) – Find critieria
  Returns: | Database objects
  Return type: | list of `NXOpen.PDM.DatabaseObjects`

  New in version NX11.0.0.

  License requirements: None.

## NewDatabaseobjects

`DatabaseObjectManager.``NewDatabaseobjects`

  This API constructs a new `NXOpen.PDM.DatabaseObjects` object.

  Signature `NewDatabaseobjects()`

  Returns: | Database objects
  Return type: | `NXOpen.PDM.DatabaseObjects`

  New in version NX11.0.0.

  License requirements: None.

## NewFindcriteria

`DatabaseObjectManager.``NewFindcriteria`

  This API constructs an array of empty `NXOpen.PDM.FindCriteria` objects.

  Signature `NewFindcriteria(nCriteria)`

  Parameters: | nCriteria (int) –
  Returns: | Find criteria
  Return type: | list of `NXOpen.PDM.FindCriteria`

  New in version NX11.0.0.

  License requirements: None.