A3DAsmModelFileLoadFromXMLFile

A3DStatus A3DAsmModelFileLoadFromXMLFile(const A3DUTF8Char *pcFileName, const A3DRWParamsLoadData *pLoadParametersData, A3DAsmModelFile **ppModelFile)
A3DStatus A3DAsmModelFileLoadFromXMLFile(const A3DUTF8Char* pcFileName, const A3DRWParamsLoadData* pLoadParametersData, A3DAsmModelFile** ppModelFile)

Loads an A3DAsmModelFile from a XML file and a set of native cad files.

This function loads an A3DAsmModelFile from a XML file and a set of native cad files.

Return Values

`A3D_FILE_TOO_RECENT`:

A3D_INITIALIZE_NOT_CALLED:

A3D_INVALID_DATA_STRUCT_NULL:

A3D_INVALID_DATA_STRUCT_SIZE:

A3D_INVALID_ENTITY_NULL:

A3D_LOAD_CANNOT_ACCESS_CADFILE:

A3D_LOAD_CANNOT_LOAD_MODEL:

A3D_LOAD_CANNOT_LOAD_MULTIENTRY:

A3D_LOAD_EMPTY_MULTI_MODEL:

A3D_LOAD_FILE_TOO_OLD:

A3D_LOAD_FILE_TOO_RECENT:

A3D_LOAD_INVALID_FILE_FORMAT:

A3D_LOAD_MISSING_COMPONENTS:

A3D_LOAD_MULTI_MODELS_CADFILE: if the file contains multiple entries (see A3DRWParamsMultiEntriesData).

A3D_LOAD_READER_NOT_IMPLEMENTED:

A3D_SUCCESS:

7.0

Parameters

pcFileName: References the path to the file containing the XML description of the assembly.

pLoadParametersData: References the parameters for reading the native parts (does not affect the reading of the XML file).

ppModelFile: References a pointer into which should be stored the location of the model file. Set this pointer to null before calling the function.

Returns

A3D_SUCCESS on success, or an error code on failure