(HOOPS Publish Advanced) Structure and function to write a ModelFile as a SCS stream cache file. More...

Data Structures

struct  A3DRWParamsExportScsData
 A structure that specifies parameters used to write a model file to SCS format. More...
 

Functions

A3DStatus A3DAsmModelFileExportToSCSFile (A3DAsmModelFile *pA3DAsmModelFile, const A3DRWParamsExportScsData *pParamsExportData, const A3DUTF8Char *pcScsFileName)
 Writes a model file to a physical file in SCS format. More...
 

Detailed Description

(HOOPS Publish Advanced) Structure and function to write a ModelFile as a SCS stream cache file.

SCS is the Stream Cache Single file format used in HOOPS Communicator to hold the representation of a CAD model. A SCS file is later expected to be referred by a HTML file. This format stores the tessellated geometry, the assembly tree and all non-tessellation related data: PMI, views, user attributes, etc. Also, exact measurement data can be optionally added to the SCS file to store geometrical information useful for measurement tool, such as cylinder and radius data on faces or edges. This measurement information can take time to be computed and should only be added on purpose to handle measurement scenarios.

Function Documentation

◆ A3DAsmModelFileExportToSCSFile()

A3DStatus A3DAsmModelFileExportToSCSFile ( A3DAsmModelFile pA3DAsmModelFile,
const A3DRWParamsExportScsData pParamsExportData,
const A3DUTF8Char pcScsFileName 
)

Writes a model file to a physical file in SCS format.

This function writes the A3DAsmModelFile entity to a SCS stream cache file. (see Export SCS Module).

Parameters
[in]pA3DAsmModelFileReferences The A3DAsmModelFile to be exported
[in]pParamsExportDataReferences the parameters for export.
[in]pcScsFileNameReferences the path of the file into which the function stores the model file.
Returns
A3D_SUCCESS in case of success or an error code
Return values
A3D_INITIALIZE_NOT_CALLED
A3D_WRITE_CANNOT_LOAD_WRITERif libprc2sc dll cannot be loaded
A3D_WRITE_HTMLCONVERSION_FAILEDif conversion execution failed
A3D_NOT_AVAILABLEif called on unsupported platform
A3D_SUCCESS
Version
10.1