A3DAsmModelFileLoadFromXMLStream

A3DStatus A3DAsmModelFileLoadFromXMLStream(const A3DUTF8Char *pcBuffer, const A3DRWParamsLoadData *pLoadParametersData, A3DAsmModelFile **ppModelFile)
A3DStatus A3DAsmModelFileLoadFromXMLStream(const A3DUTF8Char* pcBuffer, const A3DRWParamsLoadData* pLoadParametersData, A3DAsmModelFile** ppModelFile)

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

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

Return Values

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_READER_NOT_IMPLEMENTED:

A3D_LOAD_CANNOT_LOAD_MODEL:

A3D_LOAD_CANNOT_LOAD_MULTIENTRY:

A3D_LOAD_EMPTY_MULTI_MODEL:

A3D_LOAD_MISSING_COMPONENTS:

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

A3D_LOAD_INVALID_FILE_FORMAT:

A3D_SUCCESS:

Svalorted elements and examples: see A3DAsmModelFileLoadFromXMLFile().

11.2

Parameters

pcBuffer: References null terminated buffer 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