PdmPart Class — NXOpen Python API Reference 12.0.0 documentation

# PdmPart Class

class `NXOpen.PDM.``PdmPart`

  Bases: `object`

  This class serves as a gateway to part-specific tools for NX Manager mode.

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

  New in version NX4.0.0.

# Methods

Method | Description
--- | ---
AssignPermanentName | Assign a permanent name to the temporary part
CheckinParts | Given an array of parts, check in the parts.
Checkout | Checkout the part
CheckoutParts | Given an array of parts, check out the parts.
NewAlternateIdManager | Create an instance of a `NXOpen.PDM.AlternateIdManager` class that will be used to create alternate ID information on the part.
NewDatabaseAttributeManager | Create an instance of a `NXOpen.PDM.DatabaseAttributeManager` class that will be used to modify database attributes of the part.
SetDefaultFolderForPart | Set default folder for the part in which it is to be saved
SetPreciseStructureOnSave | Given an array of parts, Parts to set precise structure on save.

# Structs

PdmPartCheckinInput_Struct Struct | Reservation check-in input struct
PdmPartCheckoutInput_Struct Struct | Reservation check-out input struct

# Method Detail

## AssignPermanentName

`PdmPart.``AssignPermanentName`

  Assign a permanent name to the temporary part

  Signature `AssignPermanentName(newFileName)`

  Parameters: | newFileName (str) – name of new part file to create

  New in version NX7.5.0.

  License requirements: None.

## CheckinParts

`PdmPart.``CheckinParts`

  Given an array of parts, check in the parts.

  Signature `CheckinParts(partsToCheckIn, checkInInput)`

  Parameters:

  - partsToCheckIn (list of `NXOpen.BasePart`) – Array of parts to check in
  - checkInInput (`NXOpen.PDM.PdmPartCheckinInput_Struct`) – Input which control the check in behavior

  Returns: | Errors encountered during the checkin
  Return type: | `NXOpen.PDM.OperationErrors`

  New in version NX8.5.0.

  License requirements: None.

## Checkout

`PdmPart.``Checkout`

  Checkout the part

  Signature `Checkout()`

  New in version NX6.0.0.

  License requirements: None.

## CheckoutParts

`PdmPart.``CheckoutParts`

  Given an array of parts, check out the parts.

  Signature `CheckoutParts(partsToCheckOut, checkOutInput)`

  Parameters:

  - partsToCheckOut (list of `NXOpen.BasePart`) – Array of parts to check out
  - checkOutInput (`NXOpen.PDM.PdmPartCheckoutInput_Struct`) – Input which control the check out behavior

  Returns: | Errors encountered during the checkout
  Return type: | `NXOpen.PDM.OperationErrors`

  New in version NX8.5.0.

  License requirements: None.

## NewAlternateIdManager

`PdmPart.``NewAlternateIdManager`

  Create an instance of a `NXOpen.PDM.AlternateIdManager` class that will be used to create alternate ID information on the part.

  Signature `NewAlternateIdManager()`

  Returns: | the new `NXOpen.PDM.AlternateIdManager` instance
  Return type: | `NXOpen.PDM.AlternateIdManager`

  New in version NX4.0.0.

  License requirements: None.

## NewDatabaseAttributeManager

`PdmPart.``NewDatabaseAttributeManager`

  Create an instance of a `NXOpen.PDM.DatabaseAttributeManager` class that will be used to modify database attributes of the part.

  Signature `NewDatabaseAttributeManager()`

  Returns: | the new `NXOpen.PDM.DatabaseAttributeManager` instance
  Return type: | `NXOpen.PDM.DatabaseAttributeManager`

  New in version NX5.0.0.

  License requirements: None.

## SetDefaultFolderForPart

`PdmPart.``SetDefaultFolderForPart`

  Set default folder for the part in which it is to be saved

  Signature `SetDefaultFolderForPart()`

  New in version NX7.5.0.

  License requirements: None.

## SetPreciseStructureOnSave

`PdmPart.``SetPreciseStructureOnSave`

  Given an array of parts, Parts to set precise structure on save.

  Signature `SetPreciseStructureOnSave(partsToSetPreciseOnSave)`

  Parameters: | partsToSetPreciseOnSave (list of `NXOpen.BasePart`) – Array of parts to set precise structure on save

  New in version NX12.0.0.

  License requirements: None.