Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > System generation for simulation - C, C++ and Java code > System simulation > Simulating a system > Injecting an operation or event into a simulation (system simulation)
  
Injecting an operation or event into a simulation (system simulation)
You can inject Operations and Events using the default parameter values or specific parameter values.
To inject an operation or event:
1. Select the instance diagram associated with the instance of the Class for which you want to inject an operation or event.
2. On the State Simulation toolbar, click the Show Inject/Query Dialog button.
3. In the Operation/Event list box, select the Operation or Event you want to inject.
4. If the Operation or Event includes parameters, type or select the required value of each parameter.
5. Click Inject.