Category View manager, Object ProSimprep

Function ProSimprepInit


Description
Returns the handle to the specified simplified representation.
Replacement in Object TOOLKIT: pfcModelItemOwner::GetItemByName
pfcSolid::GetSimpRep
pfcSolid::GetMasterRep
pfcSolid::GetGraphicsRep
pfcSolid::GetGeomRep
Synopsis
#include <ProSimprep.h>
ProErrorProSimprepInit(
ProName rep_name
/* (In)
The name of the simplified representation in the solid. If you specify this argument, the function ignores rep_id.
*/
int rep_id
/* (In)
The identifier of the simplified representation, if you did not specify the name (you specified NULL).
*/
ProSolid p_solid
/* (In)
The solid that contains the simplified representation.
*/
ProSimprep* p_simp_rep
/* (Out)
The handle to the simplified representation, if found.
*/
)
Returns
PRO_TK_NO_ERRORThe function found the simplified representation in the solid.
PRO_TK_E_NOT_FOUNDThe function did not find the simplified representation in the solid.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. Assembly: Simplified Representations: Simplified Representations in Session
  2. Assembly: Simplified Representations: Simplified Representations in Session

Sample Code References:

  1. pt_examples ( TestProcstep.c )
  2. pt_examples ( TestSimpRep.c )
  3. pt_userguide ( UgInterfaceExport.c )