A3DAsmModelFileCreate

A3DStatus A3DAsmModelFileCreate(const A3DAsmModelFileData *pData, A3DAsmModelFile **ppModelFile)
A3DStatus A3DAsmModelFileCreate(const A3DAsmModelFileData* pData, A3DAsmModelFile** ppModelFile)

Creates a new A3DAsmModelFile using the data in the given A3DAsmModelFileData structure.

By creating a model file, you are responsible of deleting it later with A3DAsmModelFileDelete().

The new model file must have a root product occurrence. If the input data doesn’t contain any, A3DAsmModelFileCreate() will implicitly create one. This new product occurrence can be retrieved back on calling A3DAsmModelFileGet with ppModelFile.

Parameters

pData: The data used to create the model file.

ppModelFile: a handle to the newly created model file.

Returns

A3D_SUCCESS on success, or an error code on failure