API-Dokumentation > Miscellaneous > Object ProMdlname > Function ProMdlnameBackup
Function ProMdlnameBackup
Description
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 the backup_dir path must contain filename of object in session to be backed up.
If the backup_dir is empty, the backup of the object is made in the current directory. NOTE 1: The name of the file created is the same as the model. NOTE 2: If successful, future changes to the model will be saved to the backup directory. 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 longer names will be added in a future release.
Synopsis
#include <ProMdl.h>
ProMdlnameBackup
(
ProMdl handle
/* (In)
The model to back up
*/
ProPath backup_dir
/* (In)
The backup path information
*/
)
Returns
The function successfully made a backup of the model.
One or more of the input arguments are invalid.
The handle is not correct, or the name and type are invalid (for example, the object is not in memory).
The specified type is invalid.
The system could not write to the specified directory.
The specified directory (path) is invalid.
A general error occurred and the function failed.
The function does not have permission to operate on this model.
The function is not available in Design Test Mode.
Sample Code References
User Guide References
War dies hilfreich?