Object ProMdlfile

Function ProMdlfileMdlnameCopy


Description
Copies the disk file for a specified object to another named file. Note: In Creo 3 this function does not differ in behavior from superseded ProMdlfileCopy. In particular, from_name and to_name can be only of ProName length. This function is reserved for future use.
Synopsis
#include <ProMdl.h>
ProErrorProMdlfileMdlnameCopy(
ProMdlfileType mdl_type
/* (In)
The model type
*/
ProMdlName from_name
/* (In)
The model to be copied from
*/
ProMdlName to_name
/* (In)
The model copied to
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully copied the file.
PRO_TK_BAD_INPUTSOne or more of the arguments are 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_UNSUPPORTEDUnsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.

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: Models and Model Items: File Management Operations
  5. Core: Models and Model Items: File Management Operations
  6. Technical Summary of Changes for Creo 4.0 F000: Model
  7. Technical Summary of Changes for Creo 4.0 F000: Model

Sample Code References:

  1. pt_examples ( TestDbms.c )