Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlNoteVisit


Description
Calls the specified filter and action functions for each note in the model.
Synopsis
#include <ProNote.h>
ProErrorProMdlNoteVisit(
ProMdl mdl_handle
/* (In)
The model (PRO_PART or PRO_ASSEMBLY).
*/
ProMdlNoteVisitAction visit_action
/* (In)
The action to perform on each note. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
ProMdlNoteFilterAction filter_action
/* (In)
The filter function. If NULL, all notes 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 successfully visited all the notes.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_GENERAL_ERRORVisiting was stopped by the return from the visit action.
PRO_TK_E_NOT_FOUNDThere are no valid notes in the model.

Manual References:

  1. Assembly: Data Sharing Features: Accessing Properties of Variant Features
  2. Annotations: Annotation Features and Annotations: Visiting Notes

Sample Code References:

  1. pt_examples ( UtilCollect.c )