Category Creo Parametric fundamentals, Object ProFile

Function ProFileSaveRegister


Description
Register a file type in the 'File->Save a Copy' dialog interface of Creo Parametric.

NOTE: The ProFileSave API opens a standard file dialog. ProFileSaveRegister does not work with this API.

Replacement in Object TOOLKIT: pfcBaseSession::UIRegisterFileSave
Synopsis
#include <ProUtil.h>
ProErrorProFileSaveRegister(
wchar_t* file_type
/* (In)
File type
*/
wchar_t* file_description
/* (In)
Short description of the file.
*/
ProFileSaveAccessFunction access_function
/* (In)
File Access function; NULL is always available
*/
ProFileSaveOperationAction oper_action
/* (In)
Action on selection of the file type
*/
ProAppData app_data
/* (In)
The application data, may be NULL
*/
)
Returns
PRO_TK_NO_ERRORFile type is registered in the dialog.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_OUT_OF_MEMORYCouldn't allocate memory for new type.
PRO_TK_E_IN_USEAlready registered by this app.
PRO_TK_GENERAL_ERRORFailed to register type.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.

Manual References:

  1. Core: Utilities: File Handling
  2. Core: Utilities: File Handling

Sample Code References:

  1. pt_examples ( TestMisc.c )