TRunSimulationParameters

The TRunSimulationParameters data structure specifies optional extra parameters for the C_RunSimulation2 function.

typedef struct {

int Size;

BOOL EnableAutoSave;

int AutoSaveIntervalMinutes;

LPCTSTR AutoSaveFileName;

} TRunSimulationParameters;

Members

Size

Specifies the size, in bytes, of this data structure. Set this member to sizeof(TRunSimulationParameters) before calling a function with a TRunSimulationParameters parameter.

EnableAutoSave

If this is zero then simulation auto save is disabled. If this is non-zero value then simulation auto save is enabled.

When simulation auto save is enabled simulations are saved periodically during the call to C_RunSimulation2 in the following way:

  1. At intervals specified by the AutoSaveIntervalMinutes member the simulation is saved to the file name specified by the AutoSaveFileName member.
  2. Once the simulation completes successfully it is saved to the file name specified by the AutoSaveFileName member.

AutoSaveIntervalMinutes

This member is only used if simulation auto save is enabled. It should be set to the interval in minutes between auto saves.

AutoSaveFileName

This member is only used if simulation auto save is enabled. It should be set to the filename to be used for auto saves.

Unicode and ANSI

The Unicode structure name is TRunSimulationParametersW and the ANSI structure name is TRunSimulationParametersA.

See also

C_ProcessBatchScript, C_RunSimulation2.