Category Selection, Object ProSelection

Function ProSelectionAlloc


Description
Allocates and optionally fills in a selection object.

The allowed combinations of input arguments are as follows:
p_cmp_path p_mdl_itm
!NULL!NULL
NULL!NULL
NULLNULL

Replacement in Object TOOLKIT: CreateComponentSelection
CreateModelItemSelection
CreateSelectionFromString
Synopsis
#include <ProSelection.h>
ProErrorProSelectionAlloc(
ProAsmcomppath* p_cmp_path
/* (In)
The component path. Can be NULL only in case of parts. Cannot be NULL in case of assemblies.
*/
ProModelitem* p_mdl_itm
/* (In)
The model item (can be NULL)
*/
ProSelection* p_selection
/* (Out)
The allocated selection object
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully allocated the selection.
PRO_TK_BAD_INPUTSThe allocation failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Techniques of Conversion and Mixing
  2. Drawings: Detail Items
  3. Drawings: Detail Attachments and Leaders
  4. Drawings: Drawing Dimension Attachments and Dimension Creation
  5. Element Trees: Principles of Feature Creation: Example of Complete Feature Creation
  6. Assembly: Simplified Representations: Retrieving and Expanding LightWeight Graphics Simplified Representations
  7. User Interface: Selection: The Selection Object
  8. User Interface: Selection: Building a ProSelection Object
  9. User Interface: Selection: ProSelection Function Examples
  10. User Interface: Selection: Interactive Selection

Sample Code References:

  1. pt_af_examples ( PTAFExampleUtils.c )
  2. pt_autoaxis ( AutoAxis.c )
  3. pt_autoaxis ( AutoAxis.c )
  4. pt_examples ( TestAnalysisCompCurve.c )
  5. pt_examples ( TestAnalysisCurve.c )
  6. pt_examples ( TestAnalysisSrfCurve.c )
  7. pt_examples ( TestAnalysisSrfCurve.c )
  8. pt_examples ( TestAnalysisSrfCurve.c )
  9. pt_examples ( TestAnalysisSurface.c )
  10. pt_examples ( TestAsm.c )
  11. pt_examples ( TestAsm.c )
  12. pt_examples ( TestAsm.c )
  13. pt_examples ( TestAsm.c )
  14. pt_examples ( TestDrag.c )
  15. pt_examples ( TestFeats.c )
  16. pt_examples ( TestPatternCreate.c )
  17. pt_examples ( TestPatternCreate.c )
  18. pt_examples ( TestPatternCreate.c )
  19. pt_examples ( TestPatternCreate.c )
  20. pt_examples ( TestPatternCreate.c )
  21. pt_examples ( TestPatternCreate.c )
  22. pt_examples ( TestPatternCreate.c )
  23. pt_examples ( TestPatternCreate.c )
  24. pt_examples ( UtilFeats.c )
  25. pt_examples ( SketchFeatureCreate.c )
  26. pt_examples ( TestDtmPln.c )
  27. pt_examples ( TestDtmPln.c )
  28. pt_examples ( TestDtmPln.c )
  29. pt_examples ( TestDtmPln.c )
  30. pt_examples ( TestExtrude.c )
  31. pt_examples ( TestExtrude.c )
  32. pt_examples ( TestGeom.c )
  33. pt_examples ( TestGeom.c )
  34. pt_examples ( TestGeom.c )
  35. pt_examples ( UtilGeom.c )
  36. pt_examples ( TestCavityLayout.c )
  37. pt_examples ( TestClCmd.c )
  38. pt_examples ( TestClCmd.c )
  39. pt_examples ( TestMfgFixt.c )
  40. pt_examples ( UtilMfgNew.c )
  41. pt_examples ( TestMisc.c )
  42. pt_examples ( TestGtol.c )
  43. pt_examples ( TestSelect.c )
  44. pt_examples ( TestSelect.c )
  45. pt_examples ( TestSelect.c )
  46. pt_examples ( TestSelect.c )
  47. pt_examples ( TestSelect.c )
  48. pt_examples ( TestRule.c )
  49. pt_examples ( TestSimpRep.c )
  50. pt_examples ( TestSimpRep.c )
  51. pt_examples ( UtilCollectDtmpnt.c )
  52. pt_examples ( UtilTree.c )
  53. pt_geardesign ( GearDesign.c )
  54. pt_geardesign ( GearDesign.c )
  55. pt_geardesign ( GearDesign.c )
  56. pt_geardesign ( GearDesign.c )
  57. pt_geardesign ( GearDesign.c )
  58. pt_geardesign ( GearDesign.c )
  59. pt_geardesign ( GearDesignUtils.c )
  60. pt_geardesign ( GearDesignUtils.c )
  61. pt_geardesign ( GearDesignUtils.c )
  62. pt_geardesign ( GearDesignUtils.c )
  63. pt_userguide ( UgAsmcompConstraint.c )
  64. pt_userguide ( UgAsmcompConstraint.c )
  65. pt_userguide ( UgAsmcompConstraint.c )
  66. pt_userguide ( UgAsmcompConstraint.c )
  67. pt_userguide ( UgDatumCreate.c )
  68. pt_userguide ( UgDatumCreate.c )
  69. pt_userguide ( UgDrawingDimensions.c )
  70. pt_userguide ( Ug3DSweepCreate.c )
  71. pt_userguide ( UgChamferTemplate.c )
  72. pt_userguide ( UgCreoSweepCreate.c )
  73. pt_userguide ( UgDatumAxisCreate.c )
  74. pt_userguide ( UgDraftTemplate.c )
  75. pt_userguide ( UgEdgeChamferCreate.c )
  76. pt_userguide ( UgEdgeRoundCreate.c )
  77. pt_userguide ( UgFieldPointCreate.c )
  78. pt_userguide ( UgFlexModelCreate.c )
  79. pt_userguide ( UgFlexModelCreate.c )
  80. pt_userguide ( UgFlexModelCreate.c )
  81. pt_userguide ( UgGeneralCsysCreate.c )
  82. pt_userguide ( UgGeneralPointCreate.c )
  83. pt_userguide ( UgHoleCreate.c )
  84. pt_userguide ( UgImportfeatCreate.c )
  85. pt_userguide ( UgIntcollectionDraftCreate.c )
  86. pt_userguide ( UgOADraftCreate.c )
  87. pt_userguide ( UgOffsetPointCreate.c )
  88. pt_userguide ( UgRoundTemplate.c )
  89. pt_userguide ( UgSimpleDraftCreate.c )
  90. pt_userguide ( UgSketchedCurveCreate.c )
  91. pt_userguide ( UgSketchedPointCreate.c )
  92. pt_userguide ( UgSktExtrusionCreate.c )
  93. pt_userguide ( UgSktExtrusionCut.c )
  94. pt_userguide ( UgSktExtrusionProtrusion.c )
  95. pt_userguide ( UgSktExtrusionProtrusionExtSkt.c )
  96. pt_userguide ( UgSktExtrusionSurfaceCapped.c )
  97. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  98. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  99. pt_userguide ( UgSktExtrusionTemplate.c )
  100. pt_userguide ( UgSktExtrusionTemplate.c )
  101. pt_userguide ( UgSktExtrusionTemplate.c )
  102. pt_userguide ( UgSktExtrusionTemplate.c )
  103. pt_userguide ( UgSktExtrusionThin.c )
  104. pt_userguide ( UgSktExtrusionThin.c )
  105. pt_userguide ( UgSktExtrusionThin.c )
  106. pt_userguide ( UgSktFirstFeatureCreate.c )
  107. pt_userguide ( UgSktFirstFeatureRevCreate.c )
  108. pt_userguide ( UgSktRevolveProtrusion.c )
  109. pt_userguide ( UgSktRevolveProtrusionExtSkt.c )
  110. pt_userguide ( UgSktRevolveSurface.c )
  111. pt_userguide ( UgSktRevolveSurface.c )
  112. pt_userguide ( UgSktRevolveTemplate.c )
  113. pt_userguide ( UgSktRevolveTemplate.c )
  114. pt_userguide ( UgSktRevolveTemplate.c )
  115. pt_userguide ( UgSktRevolveTemplate.c )
  116. pt_userguide ( UgSktRevolveThinCut.c )
  117. pt_userguide ( UgSmtExtendWallCreate.c )
  118. pt_userguide ( UgSmtExtendWallCreate.c )
  119. pt_userguide ( UgSmtFlatWallCreate.c )
  120. pt_userguide ( UgSmtFlatWallCreate.c )
  121. pt_userguide ( UgSmtFlgWallCreate.c )
  122. pt_userguide ( UgSmtFlgWallCreate.c )
  123. pt_userguide ( UgSweepCreate.c )
  124. pt_userguide ( UgFundVisit.c )
  125. pt_userguide ( UgGeomHoleSrfDisp.c )
  126. pt_userguide ( UgGtolCreate.c )
  127. pt_userguide ( UgMfgMillSeqCreate.c )
  128. pt_userguide ( UgMfgMillSeqCreate.c )
  129. pt_userguide ( UgMfgMillSeqCreate.c )
  130. pt_userguide ( UgMfgMillSeqCreate.c )
  131. pt_userguide ( UgMfgMillSeqCreate.c )
  132. pt_userguide ( UgMfgMillSeqCreate.c )
  133. pt_userguide ( UgMfgMillSeqCreate.c )
  134. pt_userguide ( UgMfgMillSeqCreate.c )
  135. pt_userguide ( UgMfgMillSeqCreate.c )
  136. pt_userguide ( UgMfgMillSeqCreate.c )
  137. pt_userguide ( UgMfgOperCreate.c )
  138. pt_userguide ( UgMfgOperCreate.c )
  139. pt_userguide ( UgMfgWcellCreate.c )
  140. pt_userguide ( UgSimprepInfo.c )