Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Add Custom Functions to the Mathcad Prime Functions Menu

Add Custom Functions to the Mathcad Prime Functions Menu

1. Describe your environment: 
I work in the Energy industry and am the Mathcad cognizant Advisory Engineer for over 1,000 concurrent users in our organization.

2. What version of Mathcad are you currently running?
We're running Prime 7.0 and advertising Prime 8.0 shortly.

3. Describe the problem you are trying to solve. 

We have a number of in-house Custom Functions libraries (DLLs with many functions available).  These are mostly material properties databases, but others as well for our standard engineering calculations and correlations.  Unfortunately, in Mathcad Prime, the user's simply have to know that functions are available and how to use them.  Legacy Mathcad provided a very simple mechanism (simple XML file) for adding these add-in functions, use case, and description to the Mathcad interface in the Insert Function panel (right along with the built-in functions).  That custom XML file was picked up by Legacy Mathcad in the installation directory (\docs\funcdoc but could easily go under \Custom Functions\docs in Prime) and looked something like this:


<?xml version="1.0" encoding="UTF-8"?>
<!-- Below are the entries for the custom functions -->
        <params>T, P</params>
        <category>My Custom Functions</category>
        <description>Calculates a value as a function of parameters T [K]

        and P [MPa].</description>

<!-- Add more entries as needed -->



While Custom Functions have been available since Mathcad Prime 3.0, there has been no way for the author to advertise the function listing, use case, or description of the included functions or allow the user to pick them from a list.  This is sorely needed to make Custom Functions efficiently usable in Mathcad Prime, especially with Custom Function libraries containing several dozen available functions.

4. What is the use case for your organization?
We have multiple in-house and open-source add-in (Custom Function) libraries, however our 1000+ concurrent users struggle to use them without this functionality, causing a severe loss of productivity.  These Custom Function libraries are loaded automatically with every installation and used by at least half of our installation base.

5. What business value would your suggestion represent for your organization?
Enabling effective use of our Custom Functions libraries now that we are forced to use Mathcad Prime.  This value would be provided to ALL of PTC's Mathcad customers that make use of Custom Functions and might encourage the 3rd-party development of other add-in libraries of Custom Functions, increasing value and revenue to PTC.

6. Additional Information.

This would seem to be relatively simple to implement Mathcad Prime:

  • Function description files for libraries could be located in a directory under the Custom Functions folder where the authored DLLs are placed.
  • Prime would scan this directly an load any XML files found (as Legacy Mathcad did)
  • Prime would add these function descriptions to the full list of functions under the Category listed in the XML descriptions file when the DLLs are loaded at start-up.
1 Comment
Community Manager
Status changed to: Acknowledged

Thank you for your idea and the information provided.