ReusableObject Class — NXOpen Python API Reference 12.0.0 documentation

# ReusableObject Class

class `NXOpen.Tooling.``ReusableObject`

  Bases: `NXOpen.TransientObject`

  Represents a `NXOpen.Tooling.ReusableObject`

  To create a new instance of this class, use `NXOpen.Tooling.ToolingManager.CreateReusableObject()`

  New in version NX7.5.2.

# Properties

Property | Description
--- | ---
ContainerFile | Returns or sets the file which contains the reusable objects, could be part file or XML file
DescriptiveName | Returns or sets the descriptive name
IsSavedInOriginalPart | Returns or sets a flag indicating whether this object is saved in original part
ObjectGroupName | Returns or sets the name of the group of objects which are saved through UDO
PartFile | Returns or sets the part file which owns this reusable object
PreviewImageFile | Returns or sets the preview image file

# Methods

Method | Description
--- | ---
Dispose | Dispose the part infomation to be cloned
GetObjects | Gets the objects
SetObjects | Sets the objects

# Property Detail

## ContainerFile

`ReusableObject.``ContainerFile`

  Returns or sets the file which contains the reusable objects, could be part file or XML file

  `-------------------------------------`

  Getter Method

  Signature `ContainerFile`

  Returns: |
  Return type: | str

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ContainerFile`

  Parameters: | containerFile (str) –

  New in version NX7.5.2.

  License requirements: None.

## DescriptiveName

`ReusableObject.``DescriptiveName`

  Returns or sets the descriptive name

  `-------------------------------------`

  Getter Method

  Signature `DescriptiveName`

  Returns: |
  Return type: | str

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `DescriptiveName`

  Parameters: | descriptiveName (str) –

  New in version NX7.5.2.

  License requirements: None.

## IsSavedInOriginalPart

`ReusableObject.``IsSavedInOriginalPart`

  Returns or sets a flag indicating whether this object is saved in original part

  `-------------------------------------`

  Getter Method

  Signature `IsSavedInOriginalPart`

  Returns: |
  Return type: | bool

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `IsSavedInOriginalPart`

  Parameters: | saveInOriginalPart (bool) –

  New in version NX7.5.2.

  License requirements: None.

## ObjectGroupName

`ReusableObject.``ObjectGroupName`

  Returns or sets the name of the group of objects which are saved through UDO

  `-------------------------------------`

  Getter Method

  Signature `ObjectGroupName`

  Returns: |
  Return type: | str

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ObjectGroupName`

  Parameters: | groupName (str) –

  New in version NX7.5.2.

  License requirements: None.

## PartFile

`ReusableObject.``PartFile`

  Returns or sets the part file which owns this reusable object

  `-------------------------------------`

  Getter Method

  Signature `PartFile`

  Returns: |
  Return type: | str

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `PartFile`

  Parameters: | partFile (str) –

  New in version NX7.5.2.

  License requirements: None.

## PreviewImageFile

`ReusableObject.``PreviewImageFile`

  Returns or sets the preview image file

  `-------------------------------------`

  Getter Method

  Signature `PreviewImageFile`

  Returns: |
  Return type: | str

  New in version NX7.5.2.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `PreviewImageFile`

  Parameters: | imageFile (str) –

  New in version NX7.5.2.

  License requirements: None.

# Method Detail

## Dispose

`ReusableObject.``Dispose`

  Dispose the part infomation to be cloned

  Signature `Dispose()`

  New in version NX7.5.2.

  License requirements: None.

## GetObjects

`ReusableObject.``GetObjects`

  Gets the objects

  Signature `GetObjects()`

  Returns: |
  Return type: | list of `NXOpen.NXObject`

  New in version NX7.5.2.

  License requirements: None.

## SetObjects

`ReusableObject.``SetObjects`

  Sets the objects

  Signature `SetObjects(objects)`

  Parameters: | objects (list of `NXOpen.NXObject`) –

  New in version NX7.5.2.

  License requirements: None.