Methods¶
Method | Description |
---|---|
AddMenu | Adds and returns a menu to the COTS (Commercial, off-the-shelf) RMB menu |
AddMenuItem | Adds and returns a menu item to the COTS (Commercial, off-the-shelf) RMB menu |
AddMenuSeparator | Adds a separator to the COTS (Commercial, off-the-shelf) RMB menu |
Dispose | Frees the object from memory. |
GetInvokedCommand | Returns the menu item for the command invoked |
GetSelectedNodes | Returns a list of node(s) selected during a RMB click. |
RegisterAddCustomPopupMenuCallback | Registers the add_custom_popup_menu_callback callback method with the popup menu handler object. |
RegisterCustomPopupMenuInvokedCallback | Registers the add_custom_popup_menu_callback callback method with the popup menu handler object. |
Method Detail¶
Dispose¶
-
CustomPopupMenuHandler.
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.
GetInvokedCommand¶
-
CustomPopupMenuHandler.
GetInvokedCommand
¶ Returns the menu item for the command invoked
Signature
GetInvokedCommand()
Returns: menu item Return type: NXOpen.CustomPopupMenuItem
New in version NX6.0.4.
License requirements: None.
GetSelectedNodes¶
-
CustomPopupMenuHandler.
GetSelectedNodes
¶ Returns a list of node(s) selected during a RMB click.
Customer can call this query API inside the implementation of
NXOpen.CustomPopupMenuHandler.AddCustomPopupMenuCallback
orNXOpen.CustomPopupMenuHandler.CustomPopupMenuInvokedCallback
to obtain additional informationSignature
GetSelectedNodes()
Returns: Selected Nodes Return type: list of NXOpen.TreeListNode
New in version NX6.0.4.
License requirements: None.