54.6.2 What are the kernel and GUI registration commands?

The plug-in registration commands are stored in the Plug-in toolset in the abaqusGui module. To access the registration commands, your script should start with the following statements:

from abaqusGui import getAFXApp
toolset=getAFXApp().getAFXMainWindow().getPluginToolset()
You can use the toolset variable to do the following:

Add an item to the Plug-ins menu

The following statements add a kernel and a GUI plug-in to the Plug-ins menu:

toolset.registerKernelMenuButton()
toolset.registerGuiMenuButton()

Add an icon to a plug-ins toolbox

The following statements add a kernel and a GUI plug-in to a plug-ins toolbox:

toolset.registerKernelToolButton()
toolset.registerGuiToolButton()

The registration commands are described in Chapter 37, Plug-in registration commands,” of the ABAQUS Scripting Reference Manual.