Category Creo Parametric fundamentals, Object ProFile

Function ProFileMdlnameOpen


Description
Prompts the standard file browser interface of Creo Parametric. 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 ProMdlFileName will be added in a future release.
This function cannot be used for NX models in the current release.
Replacement in Object TOOLKIT: pfcSession::UIOpenFile
Synopsis
#include <ProUtil.h>
ProErrorProFileMdlnameOpen(
ProName dialog_label
/* (In)
The user-specified label for the dialog box. If this is NULL, the function uses the default label, "Open."
*/
ProLine filter_string
/* (In)
The user-supplied filter string for file extensions. The extensions must be specified with wildcards and separated by commas; for example, "*.prt,*.txt" (converted to wide-character string). If NULL or empty string, the browser will show all files.
*/
ProPath* shortcut_path_arr
/* (In)
A ProArray of shortcut paths. Pass NULL to not supply shortcuts to the user in the dialog.
*/
ProName* shortcut_name_arr
/* (In)
A ProArray of shortcut labels that correspond to shortcut_path_arr. Pass NULL to not supply shortcuts to the user in the dialog.
*/
ProPath default_path
/* (In)
The default path to start browsing. If this is NULL, the function uses the current directory.
*/
ProMdlFileName pre_sel_file_name
/* (In)
If supplied and existing in the default file name this name is preselected. If this is NULL, nothing is preselected.
*/
ProPath r_selected_file
/* (Out)
The selected file.
*/
)
Returns
PRO_TK_NO_ERRORThe user selected a file and picked "Ok".
PRO_TK_BAD_INPUTSOne or more input arguments was invalid, or the size of shortcut_path_arr and shortcut_name_arr is not the same.
PRO_TK_USER_ABORTThe user aborted from the user interface.
See Also
ProArrayAlloc

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
  6. Data Management: Windchill Operations: File Copy

Sample Code References:

  1. pt_examples ( TestAsm.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( TestDrwSheets.c )
  4. pt_examples ( TestSymDefMenu.c )
  5. pt_examples ( UtilFiles.c )
  6. pt_geardesign ( GearDesignUI.c )
  7. pt_udf_examples ( PTUDFExUDFPlacementDashboard.c )
  8. pt_userguide ( UgAsmcompConstraint.c )
  9. pt_userguide ( UgDrawingViews.c )
  10. pt_userguide ( UgSmtFlatWallCreate.c )
  11. pt_userguide ( UgInterfaceImport.c )
  12. pt_userguide ( UgNavigatorPane.c )
  13. pt_userguide ( UgMaterial.c )
  14. pt_userguide ( UgFileEdit.c )