SimApi Control resume
Jump to navigation
Jump to search
static bool SimApi::Control::resume()
Description
Resumes the simulation after it was paused.
Return
Type: bool Description: True, if succeeded; otherwise, false;
Remarks
The simulation pause/resume mechanism has a counter. Each call for pause increases the counter and a call for resume decreases the counter. When resume is called it decreases the counter by 1. The simulation will resume only when the counter's value will be 0 again.
Code Sample
//This function pauses the simulation and opens a dialog window and resumes the simulation
void MyExtension::ShowMyDialog()
{
SimApi::Control::pause();
MyDialog dlg;
dlg.DoModal();
SimApi::Control::resume();
}
See Also
pause
Related Links
Simulation Time Overview