Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlBackup


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProMdlnameBackup
Description
Note: This function is deprecated Use ProMdlnameBackup instead. Makes a backup of an object in memory to a disk in a specified directory. This function is equivalent to the Creo Parametric command File, Backup.

You can pass NULL as the handle, in which case you must fill the name and type fields in model_info to specify which object in session will be backed up.

The path field can a directory name or set to empty string. If the path is empty, the backup of the object is made in the current directory. NOTE 1: Only path is used, host and device are ignored, put everything in the path, "c:\\temp" for example. NOTE 2: The name of the file created is the same as the model.

Synopsis
#include <ProMdl.h>
ProErrorProMdlBackup(
ProMdl handle
/* (In)
The model to back up
*/
ProMdldata* model_info
/* (In)
The path information
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully made a backup of the model.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_INVALID_PTRThe handle is not correct, or the name and type are invalid (for example, the object is not in memory).
PRO_TK_INVALID_TYPEThe specified type is invalid.
PRO_TK_CANT_WRITEThe system could not write to the specified directory.
PRO_TK_INVALID_DIRThe specified directory (path) is invalid.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Model