Object ProPath

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>
ProErrorProPathMdlnameCreate(
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
PRO_TK_NO_ERRORThe function successfully built the path.
PRO_TK_BAD_INPUTSThe specified file name was invalid.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  2. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  3. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions
  4. Core: Utilities: File Handling
  5. Core: Utilities: File Handling

Sample Code References:

  1. pt_examples ( TestAsm.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( TestDrwSheets.c )
  4. pt_examples ( TestDrwView.c )
  5. pt_userguide ( UgAsmcompConstraint.c )
  6. pt_userguide ( UgFileEdit.c )