|
|
C_SaveSpreadsheet |
Call C_SaveSpreadsheet to save a spreadsheet containing one of the output types listed below for the SpreadsheetType parameter.
void C_SaveSpreadsheet(
TOrcFxAPIHandle ObjectHandle,
int SpreadsheetType,
void *lpParameters,
LPCTSTR lpFileName,
int *lpStatus
);
The handle of the object.
sptWaveSearch, sptLineTypesPropertiesReport, sptCodeChecksReport and sptReferencesReport this must the handle of the model.sptConnectionsReport this must be the handle of the object for which output is desired, or the handle of the model.sptDiffractionResults, sptDiffractionMeshDetails and sptDiffractionWaveComponents this must be the handle of the diffraction object.sptAddedMassDampingData this must be the handle of a vessel type or a multibody group. In the case of a vessel type, the reported data is for the selected draught.Identifies the type of spreadsheet to be saved. This can be one of the following constants defined in OrcFxAPI.h:
sptSummaryResults
sptFullResults
sptWaveSearch
sptVesselDisplacementRAOs
sptVesselSpectralResponse
sptLineClashingReport
sptDetailedProperties
sptLineTypesPropertiesReport
sptCodeChecksReport
sptSupportGeometryTable
sptAirGapReport
sptDiffractionResults
sptDiffractionMeshDetails
sptDiffractionWaveComponents
sptAddedMassDampingData
sptConnectionsReport
sptReferencesReport
Depending on the spreadsheet type this parameter should be:
TLineClashingReportParameters structure if SpreadsheetType is sptLineClashingReport.TAirGapReportParameters structure if SpreadsheetType is sptAirGapReport.NULL otherwise.Points to a null-terminated string containing the name of the file to be saved. The file can be an Excel spreadsheet (.xlsx or .xls), a tab delimited file (.txt) or a comma separated file (.csv). The decision is taken based on the file extension that you specify.
Points to a variable in which the status result for the function call will be returned.
The Unicode function name is C_SaveSpreadsheetW and the ANSI function name is C_SaveSpreadsheetA.