PartManager Class — NXOpen Python API Reference 12.0.0 documentation

# PartManager Class

class `NXOpen.PDM.``PartManager`

  Bases: `object`

  This class contains methods to create and manage parts in NX Manager mode.

  Use `NXOpen.PartCollection.PDMPartManager()` to get the instance of this class.

  New in version NX4.0.0.

# Methods

Method | Description
--- | ---
GetCaeCloneManager | Create or get a Clone Manager that can execute a CAE Clone process for a Simulation File or a FeModel File.
NewPartFromPartBuilder | Create an instance of a part builder that creates a new part from an existing part.
NewPartFromTemplateBuilder | Create an instance of a part builder that creates a new part from a template part.
NewPendingComponentsManager | Creates a pending component manager for a given part.

# Method Detail

## GetCaeCloneManager

`PartManager.``GetCaeCloneManager`

  Create or get a Clone Manager that can execute a CAE Clone process for a Simulation File or a FeModel File.

  Creates a Clone Manager for a Simulation tag or a FeModel tag, if it does not already exist. Creates part from part builder `NXOpen.PDM.PartFromPartBuilder` objects for cloning a Simulation File or a FeModel File. If called for a FeModel tag, the function will create Part Builders for FeModel Part , associated Idealized Part and CAD master part. If called for a Simulation tag, the function will create Part Builders for Simulation Part, associated FeModel Part, Idealized Part and CAD master part.

  Signature `GetCaeCloneManager(part)`

  Parameters: | part (`NXOpen.BasePart`) – the part
  Returns: | the clone manager
  Return type: | `NXOpen.PDM.CaeCloneManager`

  New in version NX9.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

## NewPartFromPartBuilder

`PartManager.``NewPartFromPartBuilder`

  Create an instance of a part builder that creates a new part from an existing part.

  This is analagous to a File SaveAs operation in NX Manager mode.

  This method will throw an error if the session is not running in NX Manager mode.

  `NXOpen.PDM.PartFromTemplateBuilder` is a singleton meaning only one instance of it can exist at one time. Calling this method will destroy the builder if one already exists and return a new instance.

  Deprecated in NX10 for “Save As of master parts” operation. This should only be used in case of Save As Non Master parts and Save As New Item Type Operations. For Save As of master parts, use `NXOpen.PDM.PartOperationCopyBuilder` instead.

  Signature `NewPartFromPartBuilder()`

  Returns: | the part builder
  Return type: | `NXOpen.PDM.PartFromPartBuilder`

  New in version NX4.0.0.

  License requirements: None.

## NewPartFromTemplateBuilder

`PartManager.``NewPartFromTemplateBuilder`

  Create an instance of a part builder that creates a new part from a template part.

  This is analagous to a File New operation in NX Manager mode.

  This method will throw an error if the session is not running in NX Manager mode.

  `NXOpen.PDM.PartFromTemplateBuilder` is a singleton meaning only one instance of it can exist at one time. Calling this method will destroy the builder if one already exists and return a new instance.

  Signature `NewPartFromTemplateBuilder()`

  Returns: | the part builder
  Return type: | `NXOpen.PDM.PartFromTemplateBuilder`

  New in version NX4.0.0.

  Deprecated since version NX10.0.0: Use `NXOpen.PDM.PartOperationCreateBuilder` instead.

  License requirements: None.

## NewPendingComponentsManager

`PartManager.``NewPendingComponentsManager`

  Creates a pending component manager for a given part.

  Pending components are ones that have been added from Teamcenter, but are not yet present in NX.

  Signature `NewPendingComponentsManager(part)`

  Parameters: | part (`NXOpen.BasePart`) – the part
  Returns: |
  Return type: | `NXOpen.PDM.PendingComponentsManager`

  New in version NX4.0.0.

  License requirements: None.