User's Guide > Models > Model Operations
Model Operations
 
Methods and Property Introduced:
These model operations duplicate most of the commands available in the Creo Parametric File menu.
The method IpfcModel.Backup() makes a backup of an object in memory to a disk in a specified directory.
The method IpfcModel.Copy() copies the specified model to another file.
The method IpfcModel.CopyAndRetrieve() copies the model to another name, and retrieves that new model into session.
The method IpfcModel.Rename() renames a specified model.
The method IpfcModel.Save() stores the specified model to a disk.
The method IpfcModel.Erase() erases the specified model from the session. Models used by other models cannot be erased until the models dependent upon them are erased.
The method IpfcModel.EraseWithDependencies() erases the specified model from the session and all the models on which the specified model depends from disk, if the dependencies are not needed by other items in session.
* 
However, while erasing an active model, IpfcModel.Erase() and IpfcModel.EraseWithDependencies() only clear the graphic display immediately, they do not clear the data in the memory until the control returns to Creo Parametric from the the VB API application. Therefore, after calling them the control must be returned to Creo Parametric before calling any other function, otherwise the behavior of Creo Parametric may be unpredictable.
The method IpfcModel.Delete() removes the specified model from memory and disk.
The method IpfcModel.Display() displays the specified model. You must call this method if you create a new window for a model because the model will not be displayed in the window until you call IpfcDisplay.
The property IpfcModel.CommonName modifies the common name of the specified model. You can modify this name for models that are not yet owned by Windchill PDMLink, or in certain situations if the configuration option let_proe_rename_pdm_objects is set to yes.
Was this helpful?