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()