Category Solids and parts, Object ProSolid

Function ProSolidSurfaceVisit


DEPRECATED: Since Creo 7.0
SUPERSEDED BY: ProSolidBodySurfaceVisit
Description
Visits all the surfaces in the specified solid.
Note: This API will not work on solid having more than one body. Use ProSolidBodySurfaceVisit() for multi-body parts.
Synopsis
#include <ProSolid.h>
ProErrorProSolidSurfaceVisit(
ProSolid p_handle
/* (In)
The solid handle.
*/
ProSurfaceVisitAction visit_action
/* (In)
The visiting function. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
ProSurfaceFilterAction filter_action
/* (In)
The filter function. If NULL, all surfaces are are visited using the action function.
*/
ProAppData app_data
/* (In)
The application data passed to the filter and visiting functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the surfaces.
PRO_TK_E_NOT_FOUNDEither no surfaces exist, or they were all filtered out by the filter function.
PRO_TK_MULTIBODY_UNSUPPORTEDmodel has more than 1 body.
OtherAny other value is the value returned by the action function (visiting stopped).

Manual References:

  1. Geometry Traversal: To Walk Through the Geometry of a Block
  2. Core: 3D Geometry: Visiting Solid Geometry
  3. Core: Solids, Parts, and Materials: Contents of a Solid
  4. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  5. Migrating to the Multibody Environment: Impact on Existing APIs