Use an external equation DLL in a Model Type
- Last UpdatedSep 10, 2025
- 2 minute read
This procedure assumes that you have already developed and compiled an external equation Dynamic Link Library (DLL) by using the External Equation Toolkit (EETK). We recommend that you familiarize yourself with the EETK and the information in the AVEVA Process Simulation External Equation Toolkit Guide before you use external equation DLLs in your Model Types.
If you built your external equation Dynamic Link Library (DLL) by using one of the project templates from the External Equation Toolkit (EETK), Visual Studio created a simulation with the correct model configuration to match the template. You can import this simulation and start from there.
Use an external equation DLL in a Model Type
-
Open the Model Editor.
-
Expand the Externals section.
-
Select Add External
.
A new external DLL reference appears in the table.
-
(Optional) In the Condition list, select the condition for which you want to use the DLL.
-
(Optional) Change the Name of the external DLL reference.
-
In the Dll box, enter the name of the DLL.
-
In the Implementation Class box, enter the name of the class that implements the external equations (that is, the class within your C# code that derives from the IExternalClass class in the External Equation Interface). Include the namespace in the class name.
For DLLs that you built from Visual Studio projects based on the SimpleEquationSet or ArrayEquationSet templates, this is the SimCentral.Examples.<ProjectName>.Main class, where <ProjectName> is the name of the corresponding Visual Studio project.


-
In the Parameters box, enter equations for the parameters that you need to pass to the DLL.
These equations should follow a <ParName> = <SCPar> format, where <ParName> is an arbitrary name that you use in the C# code to get the parameter value and <SCPar> is the name of the parameter within the model in AVEVA Process Simulation.
-
(Optional) In the Description box, enter a description for the DLL.