Category Creo Parametric fundamentals, Object ProModelitem

Function ProModelitemInit


Description
Initializes the ProModelitem handle. For better performance, use the type-specific functions (Pro*Init()) instead of this function.
Replacement in Object TOOLKIT: pfcModelItemOwner::GetItemById
pfcSolid::GetFeatureById
Synopsis
#include <ProModelitem.h>
ProErrorProModelitemInit(
ProMdl p_owner_handle
/* (In)
The model owner of the item. Cannot be NULL.
*/
int item_id
/* (In)
The item identifier
*/
ProType item_type
/* (In)
The item type
*/
ProModelitem* p_handle
/* (Out)
The handle to initialize. Cannot be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the handle.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid or item was not found .
PRO_TK_NOT_EXISTItem with such id and type does not exist.

Manual References:

  1. Assembly: Basic Assembly Access: Flexible Components
  2. Drawings: Detail Items
  3. Fundamentals: Object Handles
  4. Core: 3D Geometry: Visiting Solid Geometry
  5. Core: 3D Geometry: Visiting Solid Geometry
  6. Core: 3D Geometry: Visiting Solid Geometry
  7. Core: 3D Geometry: Visiting Solid Geometry
  8. Core: 3D Geometry: Visiting Solid Geometry
  9. Core: Models and Model Items: Model Items
  10. Core: Models and Model Items: Model Items
  11. Core: Parameters: Accessing Parameters
  12. Assembly: Simplified Representations: Retrieving and Expanding LightWeight Graphics Simplified Representations
  13. Annotations: Annotation Features and Annotations: The ProDimension Object

Sample Code References:

  1. pt_examples ( TestAnalysisCsys.c )
  2. pt_examples ( TestAnalysisSurface.c )
  3. pt_examples ( TestAnalysisSurface.c )
  4. pt_examples ( TestGeom.c )
  5. pt_examples ( TestGeom.c )
  6. pt_examples ( TestDrawTbl.c )
  7. pt_examples ( TestDrawTbl.c )
  8. pt_examples ( TestLayer.c )
  9. pt_examples ( TestClCmd.c )
  10. pt_examples ( TestClCmd.c )
  11. pt_examples ( TestMfgFixt.c )
  12. pt_examples ( UtilMfgNew.c )
  13. pt_examples ( TestSelect.c )
  14. pt_examples ( TestSelect.c )
  15. pt_examples ( TestSimpRep.c )
  16. pt_examples ( TestSimpRep.c )
  17. pt_examples ( UtilCable.c )
  18. pt_examples ( UtilCable.c )
  19. pt_examples ( UtilCable.c )
  20. pt_examples ( UtilCable.c )
  21. pt_examples ( UtilCable.c )
  22. pt_examples ( UtilCable.c )
  23. pt_examples ( UtilCable.c )
  24. pt_examples ( UtilCable.c )
  25. pt_examples ( UtilCable.c )
  26. pt_examples ( UtilCable.c )
  27. pt_examples ( UtilCable.c )
  28. pt_examples ( UtilCable.c )
  29. pt_examples ( UtilCable.c )
  30. pt_geardesign ( GearDesign.c )
  31. pt_geardesign ( GearDesign.c )
  32. pt_geardesign ( GearDesign.c )
  33. pt_geardesign ( GearDesign.c )
  34. pt_geardesign ( GearDesign.c )
  35. pt_geardesign ( GearDesign.c )
  36. pt_geardesign ( GearDesignUtils.c )
  37. pt_mech_examples ( PTMechExCopy.c )
  38. pt_mech_examples ( PTMechExItemInfo.c )
  39. pt_userguide ( UgAsmcompConstraint.c )
  40. pt_userguide ( UgAsmcompConstraint.c )
  41. pt_userguide ( UgExtAnalysisSurfcsys.c )
  42. pt_userguide ( UgChamferTemplate.c )
  43. pt_userguide ( UgDraftTemplate.c )
  44. pt_userguide ( UgDraftTemplate.c )
  45. pt_userguide ( UgDraftTemplate.c )
  46. pt_userguide ( UgRoundTemplate.c )
  47. pt_userguide ( UgRoundTemplate.c )
  48. pt_userguide ( UgRoundTemplate.c )
  49. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  50. pt_userguide ( UgSktExtrusionTemplate.c )
  51. pt_userguide ( UgSktExtrusionTemplate.c )
  52. pt_userguide ( UgSktExtrusionTemplate.c )
  53. pt_userguide ( UgSktExtrusionThin.c )
  54. pt_userguide ( UgSktExtrusionThin.c )
  55. pt_userguide ( UgSktRevolveSurface.c )
  56. pt_userguide ( UgSktRevolveTemplate.c )
  57. pt_userguide ( UgSktRevolveTemplate.c )
  58. pt_userguide ( UgSktRevolveTemplate.c )
  59. pt_userguide ( UgFundVisit.c )
  60. pt_userguide ( UgGtolCreate.c )
  61. pt_userguide ( UgGtolCreate.c )
  62. pt_userguide ( UgMfgWcellCreate.c )
  63. pt_userguide ( UgSimprepInfo.c )
  64. pt_userguide ( UtilCsys.c )