Category Solids and parts, Object ProSolid

Function ProSolidMechitemVisit


Description
Visits Creo Simulate items in the solid model.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechItem.h>
ProErrorProSolidMechitemVisit(
ProSolid solid
/* (In)
The solid model.
*/
ProType type
/* (In)
The type of item. This must be one of the PRO_SIMULATION* types. Pass PRO_VALUE_UNUSED to visit all types of Creo Simulate items.
*/
ProMechitemVisitAction visit_action
/* (In)
The visit action to be called for each item.
*/
ProMechitemFilterAction filter_action
/* (In)
The filter action to be called for each item. Can be NULL.
*/
ProAppData app_data
/* (In)
The application data passed to each callback. Can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_BAD_CONTEXTThe Creo Simulate session is not initialized.
PRO_TK_E_NOT_FOUNDNo items were found.
PRO_TK_GENERAL_ERRORA general error is encountered.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
OtherError status returned by the visit action function.

Manual References:

  1. Creo Simulate: Items: Accessing Creo Simulate Items
  2. Creo Simulate: Items: Accessing Creo Simulate Items

Sample Code References:

  1. pt_mech_examples ( PTMechExItemInfo.c )
  2. pt_mech_examples ( PTMechExItemInfo.c )
  3. pt_mech_examples ( PTMechExUtils.c )
  4. pt_mech_examples ( PTMechExUtils.c )