LinkedPartManager Class — NXOpen Python API Reference 12.0.0 documentation

# LinkedPartManager Class

class `NXOpen.``LinkedPartManager`

  Bases: `object`

  Represents the customization interface during linked mirror part creation and update.

  The “map entity handler” customization callback is called during creation of linked mirror part and during update of the linked mirror part from source. One can provide a custom map between the candidate unmapped entities in the source part and candidate unmapped entities in the mirror part.

  The “attribute edit handler” customization callback is called during creation of linked mirror part and during update of the linked mirror part from source. One can edit the attributes on entities in the mirror part using this callback.

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

  New in version NX8.5.0.

# Methods

Method | Description
--- | ---
AddAttributeEditHandler | Registers a user defined attribute edit method that is called whenever a linked mirror part is created or updated from source
AddMapEntityHandler | Registers a user defined map entity method that is called whenever a linked mirror part is created or updated from source
RemoveAttributeEditHandler | Unregisters the attribute edit handler
RemoveMapEntityHandler | Unregisters the user defined map entity handler

# Method Detail

## AddAttributeEditHandler

`LinkedPartManager.``AddAttributeEditHandler`

  Registers a user defined attribute edit method that is called whenever a linked mirror part is created or updated from source

  Signature `AddAttributeEditHandler(handler)`

  Parameters: | handler (CallableObject) – method to register
  Returns: | identifier of registered method (used to unregister the method)
  Return type: | int

  New in version NX8.5.0.

  License requirements: None.

## AddMapEntityHandler

`LinkedPartManager.``AddMapEntityHandler`

  Registers a user defined map entity method that is called whenever a linked mirror part is created or updated from source

  Signature `AddMapEntityHandler(handler)`

  Parameters: | handler (CallableObject) – method to register
  Returns: | identifier of registered method (used to unregister the method)
  Return type: | int

  New in version NX8.5.0.

  License requirements: None.

## RemoveAttributeEditHandler

`LinkedPartManager.``RemoveAttributeEditHandler`

  Unregisters the attribute edit handler

  Signature `RemoveAttributeEditHandler(id)`

  Parameters: | id (int) – identifier for method to unregister

  New in version NX8.5.0.

  License requirements: None.

## RemoveMapEntityHandler

`LinkedPartManager.``RemoveMapEntityHandler`

  Unregisters the user defined map entity handler

  Signature `RemoveMapEntityHandler(id)`

  Parameters: | id (int) – identifier for method to unregister

  New in version NX8.5.0.

  License requirements: None.