C_GetStaticResult2

Call C_GetStaticResult2 to extract static results. This function must be called after calling C_CalculateStatics and before resetting the model (by loading a new model or changing the data).

Calling this function is equivalent to calling C_GetTimeHistory2 with the PeriodNum member of lpPeriod set to pnStaticState.

void C_GetStaticResult2(

TOrcFxAPIHandle ObjectHandle,

const TObjectExtra2 *lpObjectExtra,

int VarID,

double *lpValue,

int *lpStatus

);

Parameters

ObjectHandle (IN)

The handle of the object for which you want static results.

lpObjectExtra (IN)

Points to a TObjectExtra2 variable which specifies where on the object results are required. Can be NULL if no additional information is needed.

VarID (IN)

Specifies the OrcaFlex variable for which the time history results are requested. Call C_GetVarID to obtain a VarID from a variable name.

lpValue (OUT)

Points to a variable which receives the result.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Unicode and ANSI

The Unicode function name is C_GetStaticResult2W and the ANSI function name is C_GetStaticResult2A.

See also

TObjectExtra2, C_CalculateStatics, C_GetTimeHistory2.