API 文件集 > Features > Object ProFeature > Function ProFeatureGeomitemVisit
Function ProFeatureGeomitemVisit
Description
Visits all the geometry items created by the specified feature.
The valid item types are as follows:
PRO_TYPE_UNUSED -- Visit all geometry.
PRO_SURFACE -- Visit surfaces only.
PRO_EDGE -- Visit edges only.
PRO_QUILT -- Visit quilts only.
PRO_CURVE -- Visit curves only.
PRO_POINT -- Visit points only.
PRO_AXIS -- Visit axes only.
PRO_CSYS -- Visit coordinate systems only.
PRO_ANNOTATION_ELEM -- Visit annotation elements only.
Replacement in Object TOOLKIT:
Synopsis
#include <ProFeature.h>
ProFeatureGeomitemVisit
(
ProFeature* p_feat_handle
/* (In)
The feature handle.
*/
ProType item_type
/* (In)
The type of items to visit.
*/
/* (In)
The visiting function. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
/* (In)
The filter function. If NULL, all items are visited using the action function. ProFeatureGeomitemVisit() will stop visiting if PRO_TK_GENERAL_ERROR is returned by the filter.
*/
ProAppData app_data
/* (In)
The application data passed to the filter and visiting functions.
*/
)
Returns
The function successfully visited all the items.
One or more arguments was invalid.
Other
The action function returned a value other than PRO_TK_NO_ERROR and visiting stopped.
Sample Code References
這是否有幫助?