A3DAsmComputeFilePathsFromModelFile
-
A3DStatus
A3DAsmComputeFilePathsFromModelFile(const A3DAsmModelFile *pA3DAsmModelFile, A3DUns32 *uNbPartFiles, A3DUTF8Char ***ppPartFilePaths, A3DUns32 *uNbAssemblyFiles, A3DUTF8Char ***ppAssemblyFilePaths, A3DUns32 *uNbMissingFiles, A3DUTF8Char ***ppMissingFilePaths) A3DStatusA3DAsmComputeFilePathsFromModelFile(constA3DAsmModelFile* pA3DAsmModelFile,A3DUns32* uNbPartFiles,A3DUTF8Char* **ppPartFilePaths,A3DUns32* uNbAssemblyFiles,A3DUTF8Char* **ppAssemblyFilePaths,A3DUns32* uNbMissingFiles,A3DUTF8Char* **ppMissingFilePaths)Extract file paths from a model file.
This function reads the
A3DAsmModelFileand extracts the file path of all the sub-assembly files, part files and missing files of theA3DAsmModelFileentity. Sub-assembly files are files referencing other files (part files or other sub-assembly files). Part files are final files with no reference to another 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 paths array. Missing files are sub-files that cannot be loaded for some reasons: bad paths, file not found…If pA3DAsmModelFile is null, the
A3DUTF8Chararrays will be freed if the corresponding unsigned int parameters are non-null: A3DAsmComputeFilePathsFromModelFile(NULL, […]) to delete the arrays.Parameters
pA3DAsmModelFile: Input model file. Can be “tree only”
A3DAsmModelFile.uNbPartFiles: Location to the number of found part files. Cannot be null.
ppPartFilePaths: Location to the path of each part files. Cannot be null.
uNbAssemblyFiles: Location to the number of found sub-assembly files.
ppAssemblyFilePaths: Location to the path of each sub-assembly files.
uNbMissingFiles: Location to the number of found missing files.
ppMissingFilePaths: Location to the path of each missing files.
Returns
A3D_SUCCESSon success, or an error code on failure