DynamicsProgressHandlerProc |
The DynamicsProgressHandlerProc function is an application-defined callback function that processes progress notification during a call to C_RunSimulation or C_RunSimulation2. DynamicsProgressHandlerProc is called repeatedly, at frequent intervals, during the simulation.
void __stdcall DynamicsProgressHandlerProc(
TOrcFxAPIHandle ModelHandle,
double SimulationTime,
double SimulationStart,
double SimulationStop,
BOOL *lpCancel
);
The handle of the model.
The current simulation time. This gives a measure of the progress of the simulation. If you wish to report progress as a percentage then you should calculate 100 * (SimulationTime-SimulationStart) / (SimulationStop-SimulationStart).
The simulation time at the start of the simulation.
The simulation time at which the simulation will be complete.
Points to a BOOL variable which determines whether the operation is cancelled – set this BOOL variable non-zero to abort the operation or leave it unchanged to continue.