Visiting Datum Planes
 
Functions Introduced:
ProSurfaceInit()
ProSurfaceIdGet()
A datum plane is represented by the object ProSurface, which is declared as an opaque handle and is also used to represent solid surfaces and datum surfaces.
To visit all the datum planes, use the functions ProSolidFeatVisit() and ProFeatureGeomitemVisit(), described in the section Visiting Feature Geometry. The datum planes are contained in features of type PRO_FEAT_DATUM, each of which contains a single active ProGeomitem object whose type field is PRO_SURFACE.
Always remember to use the function ProGeomitemIsInactive() to skip over datum planes used internally only. (Active datum planes occur in features of type PRO_FEAT_DATUM only; datum planes created on-the-fly during creation of other features are inactive.)
To convert the ProGeomitem to a ProSurface, use the id field in the ProGeomitem as input to the function ProSurfaceInit().
The function ProSurfaceIdGet() gives the integer identifier of a ProSurface, so you can convert back to a ProGeomitem using the function ProModelitemInit().
Note:
 
Although a datum plane has a nominal outline used to visualize the datum in the display, this is not part of the geometry because a datum plane is an infinite, unbounded plane. Therefore, if you try to use the function ProSurfaceContourVisit() on a datum plane, it will not find any contours.
這是否有幫助?