Category View manager, Object ProSimprepdataitem

Function ProSimprepdataitemsVisit


Description
Visits the items in the ProSimprepdata structure and executes the user-supplied action function.

NOTE:

Operates on assemblies only, not parts.

Replacement in Object TOOLKIT: pfcSimpRep::GetInstructions
Synopsis
#include <ProSimprepdata.h>
ProErrorProSimprepdataitemsVisit(
ProSimprepdata* p_data
/* (In)
The handle to the ProSimprepdata structure.
*/
ProFunction filter
/* (In)
The filter function. If NULL, all items are visited using the action function.
*/
ProFunction 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 visited all the items.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
OtherAny other value is the value returned by the action function (visiting stopped).

Manual References:

  1. Assembly: Simplified Representations: Extracting Information About Simplified Representations
  2. Assembly: Simplified Representations: Extracting Information About Simplified Representations

Sample Code References:

  1. pt_examples ( UtilCollect.c )
  2. pt_userguide ( UgSimprepInfo.c )