Creating the C# Another Block (Tetris) Example application
The Another Block application is built from source files generated from the C# Another Block (Tetris) Example model - ACS generates these files using the C# Generator Code Generator DLL.
If you want to generate the source files for the Another Block example application, generate the files to the following folder, which contains the supporting files required to build the application: C:\ProgramData\PTC Integrity Modeler\Example\C#\Another Block (Tetris)\VS Project
To generate the source files for the C# Another Block (Tetris) Example application:
1. In Modeler, open the C# Another Block (Tetris) Example model, which is provided in the Examples database.
2. On the Packages pane, select the Model.
3. On the ACS/TDK Control tab, click the
Load or Unload ACS button.
4. On the ACS/TDK Control tab, click the
Edit ACS Scheme button.
5. From the Launch ACS/TDK dialog, click the
Settings File selection button.
6. Select the provided C# Another Block (Tetris) Example.sni file that resides in the following folder (assuming you have installed Modeler to the default location):
C:\ProgramData\PTC Integrity Modeler\Example\C#\Another Block (Tetris)
7. On the Standard tab of the Launch ACS/TDK dialog, confirm that the C# Generator.dll Code Generator DLL is selected.
8. Specify the Target Directory for generated code.
9. Click the Save and Launch button.
Wait for ACS to finish generating to the cache.
10. On the ACS/TDK Control tab, click the
Force Generate button.
To build the C# Another Block (Tetris) Example application:
1. In Visual Studio, open the Another Block.sln file that resides in the following folder (assuming that you have installed Modeler to the default location):
C:\ProgramData\PTC Integrity Modeler\Example\C#\Another Block (Tetris)\VS Project
2. Build the Another Block application.