Listing Functions in the Insert Function Dialog

In order to make a new user function and its description appear in the Insert Function dialog box, you must provide information in the file USER_EN.XML, located in the \DOC\FUNCDOC subdirectory of your Mathcad install directory. The EN in the .xml file name indicates the English language interface. If you need to provide function definitions for other localized versions of Mathcad, use the appropriate file:

You can edit the XML file using a simple text editor such as Notepad or WordPad. For the example function, you can enter the following:

<function>
<name>
multiply
</name>
<params>
a, M
</params>
<category>
User defined
</category>
<description>
Returns the product of real scalar a and real array M
</description>
</function>

Save the file. Start Mathcad and verify that multiply appears in the Insert Function dialog box. You are now ready to use multiply in Mathcad.

In addition, note the lines near the top of the file:

<help_file>help_%s\user\userHelp.htm
<!-- Insert the name of your custom help file and path here -->
<!-- help_%s looks in the help file in ..\doc that corresponds -->
<!-- to your language version. The user folder is there. -->
</help_file>

This allows you to specify an HTML help file that will appear when the user presses F1 on your new function names.

Notes: