Model review and simulation > SySim- SysML model execution > Generating and building a SySim model execution > Generating the Visual Studio project for the SySim model execution (SySim)
Generating the Visual Studio project for the SySim model execution (SySim)
You generate a Visual Studio project through SySim.
Note that SySim does not update your Visual Studio project automatically when changes are made in its associated model, as doing this can make a SySim model execution abort when its associated Visual Studio project is updated.
To generate the Visual Studio project for the SySim model execution:
1. Start SySim.
For more information refer to Starting SySim
2. If the Output Control tab is not shown, click the More Options button.
3. In the SySim Simulator list, select the SySim Simulation Scenario Block for which you want to generate the Visual Studio project.
4. In the Microsoft (TM) Visual Studio Control group, in the environment drop-down list, select the version of Microsoft Visual Studio you will use to build the SySim model execution application.
* 
For Visual Studio 2013, you must download and install the Microsoft .NET Framework 4.6.1 Developer Pack. You can download the pack from: https://www.microsoft.com/en-us/download/details.aspx?id=49978.
5. In the Output Control tab:
a. Click the Select Project Directory button, and select the folder to which you want to generate the SySim model execution code.
b. In the SySim Project Name box, specify the name of the Visual Studio Basic project that will be generated.
c. In the SySim Private Subdirectory box, specify the name of a subfolder in which the SySim model execution code files will be generated.
6. In the SySim Control group, click the Make Model Executable and Run button to generate the Visual Studio project for the SySim model execution, build the SySim model execution file and run the SySim model execution.
If the Visual Basic form has not been set up for the SySim model execution, SySim displays the following message: Cannot Run a Simulation Without a SySim Control Bar Control.
After generating the Visual Studio project, you can design the Visual Basic form that is used for the SySim model execution. See Setting up the SySim model execution form.
* 
The first time you use the perform a Make Model Execution and Run operation with a SySim model, the SySim model execution application is built but it cannot be run because the Visual Basic form has not been set up. Before you can set up the Visual Basic form you must build the SySim model execution application at least once to make the SySim generated controls available in the Visual Basic toolbox.
After the Visual Basic form has been designed, SySim the design is reverse engineered to the model. Thereafter, through the Make Model Execution and Run button SySim can generate the Visual Basic project and build the SySim model execution application from that project.