By default, a plug-in appears in all ABAQUS/CAE modules. However, you can use the applicableModules argument of the registration commands to specify individual modules in which a plug-in is available. If a plug-in is not applicable to the current module, its menu item will be hidden in the Plug-ins menu. For example, if you specify that a plug-in is available only in the Part module, you will not see that menu item under the Plug-ins menu unless you are in the Part module. The following registration command makes the plug-in available in only the Part and Assembly modules:
toolset.registerKernelMenuButton( buttonText='Print Materials', moduleName='myUtils', functionName='printMaterials()', applicableModules=('Part','Assembly'))ABAQUS/CAE uses similar functionality to hide items in the Tools menu as you move between modules. For a full description of the arguments to the kernel and GUI registration commands, see Chapter 37, Plug-in registration commands,” of the ABAQUS Scripting Reference Manual.