Object ProMdlname

Function ProMdlnameRename


Description
Renames the specified model. Note: In Creo 3 this function does not differ in behavior from superseded ProMdlRename. In particular, new_name can be only of ProName length. This function is reserved for future use.
Replacement in Object TOOLKIT: pfcModel::Rename
Synopsis
#include <ProMdl.h>
ProErrorProMdlnameRename(
ProMdl handle
/* (In)
The model handle
*/
ProMdlName new_name
/* (In)
The new name to assign to the model
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully renamed the model.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.
PRO_TK_UNSUPPORTEDUnsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
See Also
ProMdlCurrentGet
ProMdlSave
ProMdlModificationVerify

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Models and Model Items: File Management Operations
  3. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  4. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  5. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions
  6. Technical Summary of Changes for Creo 11.0.0.0: Updates to Error Types

Sample Code References:

  1. pt_examples ( TestDbms.c )
  2. pt_geardesign ( GearDesignUI.c )