It is straightforward to execute Mosel models from applications written in C, C#, Java, VB.NET and VBA.
To assist with this, Xpress Workbench contains - for each of those languages - template source files that can load and execute a precompiled Mosel model.
To deploy a Mosel model in an application:
- Compile your Mosel model in Xpress Workbench.
- Open the File menu, click New From Template then choose the appropriate Mosel deployment file template.
- Find the constant with the value test.bim near the top of the file and change its value to the name of your BIM file.
- Save the file then copy this source file and your BIM file into your project in Microsoft Visual Studio, Eclipse IDE or other development environment.
|
Note
Xpress Workbench cannot compile or run source files written in C, C#, Java, VB.NET or VBA. To compile and run the generated source file, use an IDE tool which supports these languages, such as those listed above.
|
For more information on how to interact with Mosel from C, C#, Java, VB.NET and VBA, see the Mosel User Guide and the Mosel Libraries Reference Manual.