Category Solids and parts, Object ProPart

Function ProPartSimprepRetrieve


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProSimprepMdlnameRetrieve
Description
Note: This function is deprecated Use ProSimprepMdlnameRetrieve instead. Retrieves the specified part 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.
Replacement in Object TOOLKIT: pfcBaseSession::RetrievePartSimpRep
pfcBaseSession::RetrieveGraphicsPartRep
pfcBaseSession::RetrieveGeometryPartRep
pfcBaseSession::RetrieveSymbolicPartRep
Synopsis
#include <ProSimprep.h>
ProErrorProPartSimprepRetrieve(
ProFamilyName part_name
/* (In)
The name of the part to retrieve
*/
ProSimprepType type
/* (In)
The type of simplified rep to retrieve (PRO_SIMPREP_USER_DEFINED, PRO_SIMPREP_GRAPH_REP, PRO_SIMPREP_GEOM_REP, PRO_SIMPREP_SYMB_REP, PRO_SIMPREP_BOUNDARYBOX)
*/
ProName simp_rep_name
/* (In)
The name of the simplified representation, if the type is PRO_SIMPREP_USER_DEFINED. Otherwise, this can be NULL.
*/
ProPart* p_part
/* (Out)
The pointer to the part retrieved
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the part.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDThe Part was not found.
PRO_TK_INVALID_NAMEThe specified user defined rep was not found.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this assembly.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  2. Assembly: Simplified Representations: Simplified Representations in Session
  3. Technical Summary of Changes for Creo 4.0 F000: Simplified Representation