Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlRetrieve


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProMdlnameRetrieve
Description
Note: This function is deprecated Use ProMdlnameRetrieve instead. Retrieves the specified model and initializes the handle.

The function retrieves the model into memory, but neither displays the model nor makes it the current model.

If retrieving an assembly, and errors occur in regeneration, the assembly will include suppressed features. The function ProSolidRetrievalErrorsGet identifies if errors occurred.

Replacement in Object TOOLKIT: pfcBaseSession::OpenFile
pfcBaseSession::RetrieveModel
Synopsis
#include <ProMdl.h>
ProErrorProMdlRetrieve(
ProFamilyName name
/* (In)
The name of the model to retrieve
*/
ProMdlType type
/* (In)
The type of the model to retrieve
*/
ProMdl* p_handle
/* (Out)
The handle to the retrieved model
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the model.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDThe model was not found in the current directory.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
See Also
ProSolidRetrievalErrorsGet

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Model
  3. Fundamentals: Structure of a Creo Parametric TOOLKIT Application