C_SaveExternalProgramFile

Call C_SaveExternalProgramFile to save a Shear7 input file or a Shear7 output file.

void C_SaveExternalProgramFile(

TOrcFxAPIHandle ObjectHandle,

int FileType,

void *lpParameters,

LPCTSTR lpFileName,

int *lpStatus

);

Parameters

ObjectHandle (IN)

The handle of the object.

FileType (IN)

Identifies the file type to be saved. This can be one of the following constants defined in OrcFxAPI.h:

lpParameters (IN)

If FileType is eftShear7mds this should point to a TShear7MdsFileParameters structure. If NULL is passed then all transverse modes will be included in the exported .mds file. In other words, passing NULL is equivalent to setting FirstMode=-1 and LastMode=-1, and setting IncludeCoupledObjects to FALSE.

If FileType is eftVIVAModes this should point to a TVIVAModesFilesParameters structure. If NULL is passed then all transverse modes will be included in the exported .mds file. In other words, passing NULL is equivalent to setting FirstMode=-1 and LastMode=-1, and setting IncludeCoupledObjects to FALSE.

For all other values of FileType this parameter is ignored and NULL should be passed.

lpFileName (IN)

Points to a null-terminated string containing the name of the file to be saved.

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_SaveExternalProgramFileW and the ANSI function name is C_SaveExternalProgramFileA.

See also

TShear7MdsFileParameters.