Category Feature element trees, Object ProElemtree

Function ProElemtreeElementVisit


Description
Recursively visits the subelements of the specified element in the element tree. Note that the element must be an array, and the element path cannot contain an index to visit subelements for each index.

The visit function is called if the filter function is PRO_TK_NO_FUNCTION, or if it returns an error code other than PRO_TK_NO_ERROR.

Traversal continues until all the elements have been visited, or if the visit function returns an error code other than PRO_TK_NO_ERROR, or filter function returns an error code other than PRO_TK_NO_ERROR and PRO_TK_CONTINUE.

Synopsis
#include <ProElement.h>
ProErrorProElemtreeElementVisit(
ProElement elemtree
/* (In)
The element tree
*/
ProElempath elempath
/* (In)
The path to the element
*/
ProElemtreeVisitFilter filterfunc
/* (In)
The filter function. If NULL, all elements are visited using the action function.
*/
ProElemtreeVisitAction visitfunc
/* (In)
The visit function
*/
ProAppData appdata
/* (In)
The user data passed to the visit and filter functions
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the subelements.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDVisit function was never called.
OtherAny other value is the error code returned by the visit or filter function (visiting stopped).
See Also
ProAnalysis.h
ProAsmcomp.h
ProBeltFeat.h
ProChamfer.h
ProContact3dFeat.h
ProDamperFeat.h
ProDesignatedArea.h
ProDraft.h
ProDtmAxis.h
ProDtmCrv.h
ProDtmCsys.h
ProDtmPln.h
ProDtmPnt.h
ProElemId.h
ProExtrude.h
ProFeatIntr.h
ProFixture.h
ProFlatSrf.h
ProForeignCurve.h
ProHole.h
ProMfgoper.h
ProMerge.h
ProMirror.h
ProMove.h
ProNcseq.h
ProNcseqElem.h
ProPattern.h
ProProcstep.h
ProReplace.h
ProRevolve.h
ProRib.h
ProRound.h
ProShell.h
ProSmtFlangeWall.h
ProSmtFlatWall.h
ProSmtForm.h
ProSolidify.h
ProSmtPunchQuilt.h
ProStdSection.h
ProSurfReg.h
ProSweep.h
ProThicken.h
ProTrim.h
ProToolElem.h
ProValue.h
ProWcell.h

Manual References:

  1. Element Trees: Principles of Feature Creation: Feature Elements

Sample Code References:

  1. pt_examples ( UtilCollect.c )
  2. pt_examples ( UtilTree.c )
  3. pt_mfg_proctable ( PTMfgProcTable.c )
  4. pt_mfg_proctable ( PTMfgProcTable.c )
  5. pt_mfg_proctable ( PTMfgProcTable.c )