C_GetObjectType

Call C_GetObjectType to find the ObjectType parameter to be used in a call to C_CreateObject. This function is the inverse of C_GetObjectTypeName.

int C_GetObjectType(

TOrcFxAPIHandle ModelHandle,

LPCTSTR lpObjectTypeName,

int *lpStatus

);

Parameters

ModelHandle (IN)

The handle of the model.

lpObjectTypeName (IN)

Points to a null-terminated string containing the name of the object type. For example this could be "Line", "Line type", "Winch" etc. Alternatively if you want to create a variable data set then you should use the name of the variable data set category as displayed on the OrcaFlex variable data form. For example this could be "Current speed", "Kinematic viscosity", "Bending stiffness" etc.

lpStatus (OUT)

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

Return Value

The object type which is to be passed to C_CreateObject.

Unicode and ANSI

The Unicode function name is C_GetObjectTypeW and the ANSI function name is C_GetObjectTypeA.

See also

C_CreateObject, C_GetObjectTypeName.