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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

creating globally accessible user-defined functions

DM_9982326
1-Newbie

creating globally accessible user-defined functions

I am using Mathcad 15.0 unknown

I need to create several user-defined functions which are globally accessible to many programs in the same way in which built-in functions are accessible. preferably, i would like my user-defined functions to be located within a separate directory/file than the programs which will be using them.

i need some assistance in doing this.

Donald MacNeil
2 REPLIES 2

Hi,

Mathcad has the ability to define user functions.  Go to Help | Developer's Reference.

The help defines the process in a simple and adequate manner.

You can create a DLL user function.   They are kept globally in the Mathcad/userefi directory of the Mathacd installation and accessible to any worksheet.

Two samples DIGAMM and KRONECKR are provided.

 

It is found in the use

Capture3.JPG

Capture4.jpg

Capture5.JPG

Cheers

Terry

 

 

Hi,

The other way to define global functions is to program them in Mathcad in a separate file.  You can at the top of any new file reference in the global functions file.

I do this with a custom file that defines some functions and units.

You use Insert | Reference on the toolbar.

A dialog box opens where you identify the file and insert the reference file.

Any variables, units, functions in the reference file are now available in the new file.

Cheers Terry

Capture3.JPG

Capture4.jpg

Capture5.JPG

 

 

 

Top Tags