Customization > SySim- SysML model execution > Modeling a SySim model execution > Including SysML model blocks in a SySim simulation scenario (SySim)
  
Including SysML model blocks in 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
You include a SysML model Block (a subsystem) in a SySim Simulation Scenario by applying the «SySim ControlBlock» stereotype and dragging it to the SySim Simulation Scenario's Internal Block Diagram.
To include a SysML model block in the SySim simulation scenario:
1. If you have not done so already, add the SySim Profile to your SysML model. How?
2. Right-click the SysML Block you want to include in the SySim simulation scenario, point to Links > Stereotypes, and then click SySim ControlBlock.
3. Open the Internal Block Diagram you created for the SySim Simulation Scenario.
4. Drag the SysML Block you want to include in the SySim simulation scenario to the Internal Block Diagram (a Block Property is created).
5. Set a name for the Block Property, ensuring that the name does not begin with a number.
6. Right-click the Block Property, point to Populate > Nodes, and then click Full Port.
7. Right-click the Block Property, point to Populate > Nodes, and then click Proxy Ports.
8. Right-click the Block Property, point to Populate > Nodes, and then click Flow Ports.
9. Right-click the Block Property, point to Populate > Nodes, and then click Standard Ports.
10. If the SysML model block owns a state machine and you want that state machine to be ignored in the SySim model execution:
a. Open the SysML model block's Property Pages.
b. Click the SySim ControlBlock tab.
c. Set the tagged value of the SySim StateMachine tag definition to No.
After adding the SysML model Blocks (through Block Properties) to the Internal Block Diagram, you can add to the Internal Block Diagram any PTC provided SySim Control Blocks you want to use to input and output data during the SySim model execution. For more information refer to PTC provided SySim control blocks.