Documentation de l'API > Miscellaneous > Object ProPath > Function ProPathMdlnameCreate
Function ProPathMdlnameCreate
Description
Builds a path, given 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. The support for ProMdlName will be added in a future release.
Synopsis
#include <ProUtil.h>
ProPathMdlnameCreate
(
ProPath path
/* (In)
The directory path. This argument is optional (can be NULL).
*/
ProMdlName file_name
/* (In)
The file name. This argument is optional (can be NULL).
*/
ProMdlExtension extension
/* (In)
The file extension. This argument is optional (can be NULL).
*/
int version
/* (In)
The file version. This argument is optional (can be PRO_VALUE_UNUSED).
*/
ProPath r_file_name_w_path
/* (Out)
The full file name, composed of the path, name, extension, and version.
*/
)
Returns
The function successfully built the path.
The specified file name was invalid.
Sample Code References
User Guide References
Est-ce que cela a été utile ?