Using the C-Model Editor
The C-Model Editor facilitates the development and extension of C-Models for Twin Builder by generating much of the C++ code required to implement a Twin Builder C-Model. Syntax checking and generation of Dynamically Linked Library (DLL) files for models are also managed by the C-Model Editor. You can also print the C-Model listing.
Developing C-Models requires that one of these C++ compilers is installed:
- Microsoft® Visual Studio Professional or Community Version
- Visual Studio or Visual Studio Community 2022
- Visual Studio or Visual Studio Community 2019
- Visual Studio or Visual Studio Community 2017
- Visual Studio or Visual Studio Community 2015
-
If no professional version is available, we recommend that you use the Visual Studio Community version.
-
You must install the workload package Desktop development with C++ before using Visual Studio 2017 (or later) C++ Compiler.
-
By default, the compilation of C-models in the C-model editor does not require the MFC package to be installed. If the C-model does not require MFC functionality, set Use MFC to No in the C-model editor build settings. If needed, you must manually add the MFC package to the list of packages in the C++ development package, since it is not installed automatically by the VS installer.
Models generated using the C-Model Editor appear under Project Components in the Project Manager components tree and are used in the same way as other Twin Builder components. Because they are components, you can edit their properties using Twin Builder‘s Component Editor.
For a detailed discussion of how to develop, program, debug, and deploy C-Models in Twin Builder, see C-Models in Twin Builder.