|
C_SetSimulationDrawTime |
C_SetSimulationDrawTime sets the model's simulation draw time.
The simulation draw time controls the way C_CreateModel3DViewBitmap, C_SaveModel3DViewBitmapMem and C_SaveModel3DViewBitmapToFile behave. These functions draw an OrcaFlex model and the simulation time used for this drawing is controlled by this function. This allows you to produce drawings of the OrcaFlex model at a number of different points of a simulation. The C_GetSimulationDrawTime function can be called to retrieve the current value of simulation draw time.
void C_SetSimulationDrawTime(
);
The handle of the model.
The simulation time used by C_CreateModel3DViewBitmap, C_SaveModel3DViewBitmapMem and C_SaveModel3DViewBitmapToFile for drawing the model. Subsequent calls to these functions will use the time specified by this parameter when drawing the model.
If the simulation draw time is before the start of the simulation then the model will be drawn at the simulation start (i.e. the beginning of the build-up period). Likewise if the simulation draw time is after the end of the simulation then the model will be drawn at the simulation end.
If you wish to draw the model in its latest state then you should pass OrcinaDefaultReal() for this parameter. By latest state we mean the configuration of the model after the latest calculation. In more detail this is:
Points to a variable in which the status result for the function call will be returned.
C_CreateModel3DViewBitmap, C_GetSimulationDrawTime, C_SaveModel3DViewBitmapMem, C_SaveModel3DViewBitmapToFile.