Exporting and Importing Functions
To export a function (including all subfunctions) as a text file, proceed as follows.
-
In the Function Step, click on Export Functions.
A file selection window opens. The file type is set to Export *.mocafun file and cannot be changed. The project name is preselected as export file name.
-
In the file selection window, enter or select path and name for the export file.
-
Click on Save.
The function is exported.
To import a function (including all subfunctions) from a text file, proceed as follows.
-
In the Function Step, click on Import Functions.
A message window opens and informs you that all existing functions will be overwritten by the import.
-
Click on Import to continue.
A file selection window opens. The file type is set to Import *.mocafun file. You can import functions from any text file, as long as the file content follows the formula syntax.
-
In the file selection window, enter or select path and name for the import file.
-
Click on Open.
All nodes and functions included in the project before the import are deleted and the new functions are imported. They appear in the Functions pane.
If the functions cannot be imported (e.g., because the imported function contains a parameter that does not exist in the project), a warning is issued.
See also