A3DAsmGetFilesPathFromModelFile

A3DStatus A3DAsmGetFilesPathFromModelFile(const A3DAsmModelFile *pA3DAsmModelFile, A3DUns32 *uNbPartFiles, A3DUTF8Char ***ppPartFilesPaths, A3DUns32 *uNbAssemblyFiles, A3DUTF8Char ***ppAssemblyFilesPaths, A3DUns32 *uNbMissingFiles, A3DUTF8Char ***ppMissingFilesPaths)
A3DStatus A3DAsmGetFilesPathFromModelFile(const A3DAsmModelFile* pA3DAsmModelFile, A3DUns32* uNbPartFiles, A3DUTF8Char* **ppPartFilesPaths, A3DUns32* uNbAssemblyFiles, A3DUTF8Char* **ppAssemblyFilesPaths, A3DUns32* uNbMissingFiles, A3DUTF8Char* **ppMissingFilesPaths)

Extract file paths from a model file.

This function reads the A3DAsmModelFile extracts the file path of all the sub-assemblies, part and missing files of the A3DAsmModelFile entity. Sub-assemblies are files referencing other files (part files or other sub-assemblies files). Part files are final files with no reference to an other depending file. If a file has reference on both types of file, the file will be considered as a sub-assembly file and will not be referenced in the part file path array. Missing files path are sub-files that cannot be loaded for some reasons: bad paths, file not found…

If pA3DAsmModelFile is NULL, the A3DUTF8Char arrays will be freed if the corresponding unsigned int parameters are non-null: A3DAsmGetFilesPathFromModelFile(NULL, […]) to delete the arrays.

Parameters

pA3DAsmModelFile: The input model file. Can be “tree only” A3DAsmModelFile.

uNbPartFiles: The number of parts detected. (must not be NULL)

ppPartFilesPaths: The file names of detected parts. (must not be NULL)

uNbAssemblyFiles: The number of sub-assemblies detected. (can be NULL)

ppAssemblyFilesPaths: The file names of detected sub-assemblies. (can be NULL)

uNbMissingFiles: The number of missing files. (can be NULL)

ppMissingFilesPaths: The file names of detected missing files. (can be NULL)

Returns

A3D_SUCCESS on success, or an error code on failure