< Home

< Programming Guide

< Supported File Formats

REFERENCE MANUAL

Data Structures | Enumerations | Functions

Structures to write the ModelFile defined through this API in a 3D Annot. More...

Data Structures

struct  A3DRWParamsExportPrcData
 A structure that specifies parameters used to write the model file to PRC format. More...
 
struct  A3DRWParamsExportU3DData
 A structure that specifies parameters used to write the model file to U3D format. More...
 

Enumerations

enum  A3DECompressBrepType { kA3DCompressionLow = 0, kA3DCompressionMedium, kA3DCompressionHigh }
 Level of compression used to write the model file to PRC format. More...
 
enum  A3DEU3DVersion { kA3DECMA1, kA3DECMA3 }
 U3D formats supported for export. More...
 

Functions

A3DStatus A3DAsmModelFileExportToPrcFile (const A3DAsmModelFile *pA3DAsmModelFile, const A3DRWParamsExportPrcData *pParamsExportData, const A3DUTF8Char *pcCADFileName, A3DRWParamsPrcWriteHelper **ppPrcWriteHelper)
 Writes a model file to a physical file in a PRC format. More...
 
A3DVoid A3DRWParamsPrcWriteHelperFree (A3DRWParamsPrcWriteHelper *pA3DRWParamsPrcWriteHelper)
 Free PRC write helper. More...
 
A3DStatus A3DAsmModelFileExportToU3DFile (const A3DAsmModelFile *pA3DAsmModelFile, const A3DRWParamsExportU3DData *pParamsExportData, const A3DUTF8Char *pcCADFileName)
 Writes a model file to a physical file in Universal 3D format. More...
 

Detailed Description

Structures to write the ModelFile defined through this API in a 3D Annot.

Supported formats are PRC and U3D.

Enumeration Type Documentation

Level of compression used to write the model file to PRC format.

This sets the amount, in millimeters, of lossy compression that is applied to geometry. For best results when exporting geometry, use kA3DCompressionLow.

Version
3.0
Enumerator
kA3DCompressionLow 

Compression with tolerance set to 0.001 mm (low compression, high accuracy).

kA3DCompressionMedium 

Compression with tolerance set to 0.01 mm (medium compression, medium accuracy).

kA3DCompressionHigh 

Compression with tolerance set to 0.1 mm (high compression, low accuracy).

U3D formats supported for export.

Version
4.0
Enumerator
kA3DECMA1 

ECMA-363, version 1 writing. (Acrobat Reader 7.0 compatible).

kA3DECMA3 

ECMA-363, version 3 writing.

Function Documentation

A3DStatus A3DAsmModelFileExportToPrcFile ( const A3DAsmModelFile pA3DAsmModelFile,
const A3DRWParamsExportPrcData pParamsExportData,
const A3DUTF8Char pcCADFileName,
A3DRWParamsPrcWriteHelper **  ppPrcWriteHelper 
)

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

This function writes the A3DAsmModelFile entity to a physical file.

Parameters
[in]pA3DAsmModelFileReferences the A3DAsmModelFile to be written out.
[in]pParamsExportDataReferences the parameters for export.
[in]pcCADFileNameReferences the path of the file into which the function stores the model file.
[in,out]ppPrcWriteHelperReserved for future use; must be set to NULL.
Returns
A3D_INITIALIZE_NOT_CALLED
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_WRITE_INVALID_FILE_NAME
A3D_WRITE_ERROR
A3D_WRITE_CANNOT_LOAD_WRITER
A3D_SUCCESS
Version
3.0
A3DVoid A3DRWParamsPrcWriteHelperFree ( A3DRWParamsPrcWriteHelper pA3DRWParamsPrcWriteHelper)

Free PRC write helper.

Parameters
[in,out]pA3DRWParamsPrcWriteHelperThe helper to free.
Version
3.0
A3DStatus A3DAsmModelFileExportToU3DFile ( const A3DAsmModelFile pA3DAsmModelFile,
const A3DRWParamsExportU3DData pParamsExportData,
const A3DUTF8Char pcCADFileName 
)

Writes a model file to a physical file in Universal 3D format.

This function writes the A3DAsmModelFile entity to a physical file.

Parameters
[in]pA3DAsmModelFileReferences the A3DAsmModelFile to be written out.
[in]pParamsExportDataReferences the parameters for export.
[in]pcCADFileNameReferences the path of the file into which the function stores the model file.
Returns
A3D_INITIALIZE_NOT_CALLED
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_WRITE_INVALID_FILE_NAME
A3D_WRITE_ERROR
A3D_WRITE_CANNOT_LOAD_WRITER
A3D_SUCCESS
Version
4.0