Documentación de la API > View manager > Object ProSimprep > Function ProSimprepMdlnameRetrieve
Function ProSimprepMdlnameRetrieve
Description
Retrieves the specified simplified representation. If a higher representation of the model exists in the memory, then the simplified representation of type rep_type will be ignored and the higher representation of the model will be retrieved.
NOTE: If errors occur in regeneration, the model will include suppressed features. The function ProSolidRetrievalErrorsGet identifies if errors occurred. 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 ProMdlName will be added in a future release.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSimprep.h>
ProSimprepMdlnameRetrieve
(
ProMdlName model_name
/* (In)
The name of the model to retrieve. NULL is not allowed.
*/
ProMdlfileType file_type
/* (In)
The file type of the model to retrieve.
*/
/* (In)
The representation type. PRO_SIMPREP_MASTER_REP and PRO_SIMPREP_USER_DEFINED can be used only if file_type is PRO_MDLFILE_PART
*/
ProName rep_name
/* (In)
The name of the simplified representation, if the rep_type is PRO_SIMPREP_USER_DEFINED. Otherwise, this can be NULL.
*/
ProSolid* p_solid
/* (Out)
The handle to the model. NULL is allowed.
*/
)
Returns
The function successfully retrieved the information.
One or more of the input arguments are invalid.
The function does not have permission to operate on this model.
The specified user defined rep was not found.
See Also
Sample Code References
User Guide References
¿Fue esto útil?