An axis is represented by the object
ProAxis, which is declared as an opaque handle. The function
ProSolidAxisVisit() visits all the axes in a part or assembly. An axis created explicitly using the
Creo Parametric command > will be contained in a feature of type
PRO_FEAT_DATUM_AXIS, but axes can also exist in features of other types, such as
PRO_FEAT_HOLE.
To find the feature that an axis belongs to, describe the axis in terms of a
ProGeomitem object using the functions
ProAxisIdGet() and
ProModelitemInit(), then call
ProGeomitemFeatureGet().
You could also traverse axes using the functions
ProSolidFeatVisit() and
ProFeatureGeomitemVisit(), described in the section
Visiting Feature Geometry. As input to
ProFeatureGeomitemVisit(), use the type
PRO_AXIS. You would have to visit features of any type that could contain axes.
Always remember to use the function
ProGeomitemIsInactive() to skip over axes used internally only.
The function
ProAxisSurfaceGet() provides the
ProSurface object that identifies the surface used to define the axis position.