Customization > SySim- SysML model execution > Modeling a SySim model execution > Creating a SySim simulation scenario (SySim)
  
Creating a SySim simulation scenario (SySim)
Preparing a SysML model for SySim
Modeling a SySim model execution:
Creating a SySim simulation scenario
Including SysML model blocks in a SySim simulation scenario
Including PTC provided SySim control blocks in a SySim simulation scenario
Creating your own SySim control blocks to model controls and behavior
Including your own SySim control blocks in a SySim simulation scenario
Defining SySim control block and SysML model block interaction
Setting up a model to work with PTC ThingWorx
Generating and building a SySim model execution
Working with a SySim model execution
The SySim Simulation Scenario defines a SySim model execution scenario. SySim generates a Visual Basic form for the SySim Simulation Scenario.
To create a SySim simulation scenario:
1. Ensure that any State Diagrams in the SysML model are using ASAL (a PTC structured action language) to describe behavior, and the state machine event handling in the model is supported by SySim.
For more information refer to Preparing a SySim model for SySim
2. Add the SySim Profile to your SysML model.
For more information refer to Adding the SySim profile package to a model
3. Create a new Package to contain the SySim Simulation Scenario.
4. Right-click the Package you have created for the SySim items and diagrams, point to New, point to SysML, point to Structure, and then click Block.
5. Type the name of the SySim Simulation Scenario, and the press the Enter key.
6. Right-click the SysML Block, point to Links > Stereotypes, and then click SySim Simulator.
7. Right-click the SysML Block, point to New, point to SysML, and then click Internal Block Diagram.
8. Right-click the background of the Internal Block Diagram, point to Populate, point to Nodes, and then click Owning Block.
9. If you want to show the «SySim Simulator» stereotype on the Block, so it is obvious that it is SySim Simulation Scenario:
Right-click the background of the diagram, and then click View Options.
Click the Shown Stereotypes entry.
Click the Link button.
Select the SySim Simulator check box, and then click OK.
On the View Options dialog, click OK.
You can now specify the SysML model Blocks (subsystems) to include in the SySim Simulation Scenario through the Internal Block Diagram. Including SysML blocks in the SySim simulation scenario