CustomPopupMenuItem Class — NXOpen Python API Reference 12.0.0 documentation

# CustomPopupMenuItem Class

class `NXOpen.``CustomPopupMenuItem`

  Bases: `NXOpen.TransientObject`

  Represents Custom Popup Menu Item class

  New in version NX6.0.4.

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
GetId | Returns Id of the menu item.
GetName | Returns name of the menu item.
SetDisabled | Sets the menu disabled

# Method Detail

## Dispose

`CustomPopupMenuItem.``Dispose`

  Frees the object from memory.

  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 NX6.0.4.

  License requirements: None.

## GetId

`CustomPopupMenuItem.``GetId`

  Returns Id of the menu item.

  Signature `GetId()`

  Returns: | Id of the menu
  Return type: | int

  New in version NX6.0.4.

  License requirements: None.

## GetName

`CustomPopupMenuItem.``GetName`

  Returns name of the menu item.

  Signature `GetName()`

  Returns: | Name of the menu item
  Return type: | str

  New in version NX6.0.4.

  License requirements: None.

## SetDisabled

`CustomPopupMenuItem.``SetDisabled`

  Sets the menu disabled

  Signature `SetDisabled()`

  New in version NX6.0.4.

  License requirements: None.