Category Solids and parts, Object ProSolid

Function ProSolidSimprepVisit


Description
Visits all the user-defined simplified representations in the specified solid. This will not visit built-in representations.
Synopsis
#include <ProSimprep.h>
ProErrorProSolidSimprepVisit(
ProSolid p_solid
/* (In)
The solid.
*/
ProGeomitemFilter filter
/* (In)
The filter function. If NULL, all representations are visited using the action function.
*/
ProGeomitemAction action
/* (In)
The visiting function. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
ProAppData app_data
/* (In)
The application data passed to the filter and visiting functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the simplified representations.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDNo simplified representations were found.
OtherAny other value is the value returned by the action function (visiting stopped).

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Assembly: Simplified Representations: Simplified Representations in Session
  3. Assembly: Simplified Representations: Simplified Representations in Session
  4. Working with Multi-CAD Models Using Creo Unite: Working with Simplified Representations

Sample Code References:

  1. pt_examples ( TestSimpRep.c )
  2. pt_examples ( UtilCollect.c )