API 文件集 > Creo Parametric fundamentals > Object ProFile > Function ProFileMdlnameParse
Function ProFileMdlnameParse
Description
Parses the specified file name into its components. Note: In Creo 3 this function does not support names longer than 80 characters. It will return PRO_TK_BAD_INPUTS for longer names. This API is not supported for fetching the model version of windchill model(if directory path is winchill path). The support for ProMdlName will be added in a future release.
Replacement in Object TOOLKIT:
Synopsis
#include <ProUtil.h>
ProFileMdlnameParse
(
ProPath file_name_w_path
/* (In)
The full file name, composed of the path, name, extension, and version.
*/
ProPath r_path
/* (Out)
The directory path. This argument is optional (can be NULL).
*/
ProMdlName r_file_name
/* (Out)
The file name. This argument is optional (can be NULL).
*/
ProMdlExtension r_extension
/* (Out)
The file extension. This argument is optional (can be NULL).
*/
int * r_version
/* (Out)
The file version. This argument is optional (can be NULL).
*/
)
Returns
The function successfully parsed the file name.
The specified file name was invalid.
Sample Code References
這是否有幫助?