Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlLayerVisit


Description
Calls the specified filter and action functions for each layer in the model.
Synopsis
#include <ProLayer.h>
ProErrorProMdlLayerVisit(
ProMdl model
/* (In)
The model.
*/
ProLayerAction visit_action
/* (In)
The action to perform on each layer. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
ProLayerAction filter_action
/* (In)
The filter function. If NULL, all layers are visited using the action function.
*/
ProAppData app_data
/* (In)
The application data passed to the visiting and filter functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function visited all the layers.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
OtherAny other value is the status returned by the last executed callback (filter_action or visit_action).

Manual References:

  1. Core: Models and Model Items: Layers
  2. Core: Models and Model Items: Layers

Sample Code References:

  1. pt_examples ( TestLayer.c )