Visiting Notes
 
Function introduced:
The function ProMdlNoteVisit() enables you to visit all the notes in the specified model. The input arguments are:
mdl_handle—Specify the model (PRO_PART or PRO_ASSEMBLY) using the ProMdl object.
visit_action—Specify the action to perform on each note. See ProMdlNoteVisitAction for the prototype and return values.
filter_action—Specify the filter function. If NULL, all notes are visited using the action function. See ProMdlNoteFilterAction for the prototype and return values.
app_data—Specify the application data that is passed to the visiting and filter functions using the ProAppData object.
The function returns the following errors:
PRO_TK_NO_ERROR—The function successfully visited all the notes.
PRO_TK_GENERAL_ERROR—The function stopped visiting the notes due to the filter function or visit action returning PRO_TK_GENERAL_ERROR.
PRO_TK_BAD_INPUTS—One or more inputs were invalid.
PRO_TK_E_NOT_FOUND—The model does not contain any valid notes.
Isto foi útil?