For a full description of the arguments to the kernel and GUI registration commands, see Plug-in registration commands. The helpUrl argument can be any valid web browser URL. In most cases the URL will point to an HTML file, but the URL can also point to a plain text file or to an external website. If you provide a help file with your plug-in that will be referenced by the helpUrl argument, you should avoid hard-coding directory names by constructing the path to the help file using the techniques shown in previous examples. The following example of myUtils_plugin.py shows how you can provide information about the plug-in and construct the relative path to the helpUrl argument: from abaqusGui import getAFXApp
toolset = getAFXApp().getAFXMainWindow().getPluginToolset()
import os
helpUrl = os.path.join(os.getcwd(), 'bridgeHelp.htm')
toolset.registerKernelMenuButton(
buttonText='Print Current Viewport',
moduleName='myUtils', functionName='printCurrentVp()',
author='SIMULIA', version='1.0'
description='Print current viewport to a PNG file', helpUrl=helpUrl) |