Category Creo Parametric fundamentals, Object ProModelitem

Function ProModelitemByNameInit


Description
Gets a model item handle, given the name and type of the item ( p_item is pre allocated ).
Replacement in Object TOOLKIT: pfcModelItemOwner::GetItemByName
pfcSolid::GetFeatureByName
Synopsis
#include <ProModelitem.h>
ProErrorProModelitemByNameInit(
ProMdl mdl
/* (In)
The model.
*/
ProType type
/* (In)
The type of item to find.
*/
ProName name
/* (In)
The name of the item to find.
*/
ProModelitem* p_item
/* (Out)
Pointer to the item found.
*/
)
Returns
PRO_TK_NO_ERRORThe item was found.
PRO_TK_E_NOT_FOUNDThe item was not found.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.

Manual References:

  1. Core: Models and Model Items: Model Items
  2. Core: Models and Model Items: Model Items
  3. Core: Solids, Parts, and Materials: Material Objects
  4. Core: Solids, Parts, and Materials: Material Types and Properties

Sample Code References:

  1. pt_examples ( TestPartMaterial.c )
  2. pt_userguide ( UgAsmcompConstraint.c )
  3. pt_userguide ( UgAsmcompConstraint.c )
  4. pt_userguide ( UgMaterial.c )
  5. pt_userguide ( UgSolidMaterial.c )