Category Features, Object ProFeature

Function ProFeatureDimensionVisit


Description
Visits dimensions belonging to the feature. NOTE: The dimensions values might depend on other feature?s dimensions, e.g. sketch based features with shared/patterned or external sections, dependent copied or mirrored features. In many Creo operations such value dependent dimensions are automatically substituted by the parent dimension. If your application wishes to substitute value dependent dimensions by the parent, see ProDimensionParentGet().
Synopsis
#include <ProFeature.h>
ProErrorProFeatureDimensionVisit(
ProFeature* feature
/* (In)
The feature
*/
ProDimensionVisitAction visit
/* (In)
The visit function
*/
ProDimensionFilterAction filter
/* (In)
The filter function. If NULL, all dimensions are visited using the action function.
*/
ProAppData data
/* (In)
User defined data passed to the visit and filter functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the feature's dimensions.
PRO_TK_BAD_INPUTSThe function failed because one or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDNo feature dimensions were visited.
PRO_TK_GENERAL_ERRORAn error occurred while locating the dimensions.
otherVisiting was stopped by the caller supplied functions with this error return.

Manual References:

  1. Assembly: Data Sharing Features: Accessing Properties of Variant Features
  2. Core: Features: Feature Dimensions
  3. Annotations: Annotation Features and Annotations: Driving Dimension Annotation Elements

Sample Code References:

  1. pt_examples ( TestDimension.c )
  2. pt_geardesign ( GearDesign.c )
  3. pt_geardesign ( GearDesign.c )
  4. pt_geardesign ( GearDesign.c )
  5. pt_geardesign ( GearDesign.c )
  6. pt_geardesign ( GearDesign.c )
  7. pt_geardesign ( GearDesign.c )
  8. pt_geardesign ( GearDesign.c )
  9. pt_geardesign ( GearDesign.c )
  10. pt_geardesign ( GearDesign.c )
  11. pt_geardesign ( GearDesign.c )
  12. pt_geardesign ( GearDesign.c )
  13. pt_geardesign ( GearDesign.c )
  14. pt_geardesign ( GearDesign.c )
  15. pt_geardesign ( GearDesign.c )
  16. pt_geardesign ( GearDesign.c )
  17. pt_geardesign ( GearDesignUtils.c )
  18. pt_userguide ( UgDimLocationUtils.c )
  19. pt_userguide ( UgExtAnalysisSurfcsys.c )