Category Selection, Object ProSelection

Function ProSelect


Description
Selects an object in a Creo Parametric window.

NOTE: If the user ends the selection without actually making any, ProSelect will return PRO_TK_NO_ERROR with (*p_n_sels) as zero and p_sel_array as NULL.

Replacement in Object TOOLKIT: pfcBaseSession::Select
Synopsis
#include <ProSelection.h>
ProErrorProSelect(
char option[]
/* (In)
The selection filter. See the Creo Parametric TOOLKIT User's Guide for more information.
*/
int max_count
/* (In)
The maximum number of selections allowed.
*/
ProSelection* p_in_sel
/* (In)
A ProArray of pointers to ProSelection structures (from a previous call to selection) used to initialize the array of selections. This can be NULL.
*/
ProSelFunctions* sel_func
/* (In)
A pointer to a structure of filter functions. This can be NULL.
*/
ProSelectionEnv sel_env
/* (In)
Use ProSelectionEnvAlloc() to allocate this argument. Can be NULL.
*/
ProSelAppAction appl_act_data
/* (In)
NULL in Release 18 and higher.
*/
ProSelection** p_sel_array
/* (Out)
A pointer to an array of ProSelection structures. This argument points to static memory allocated by the function. It is reallocated on subsequent calls to this function.
*/
int* p_n_sels
/* (Out)
The actual number of selections made.
*/
)
Returns
PRO_TK_NO_ERRORThe user made a selection, or chose Done.
PRO_TK_USER_ABORTThe user chose Quit.
PRO_TK_PICK_ABOVESelection was interrupted by a user's pick on any button from above menus.
PRO_TK_E_DEADLOCKThe Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).
See Also
ProSelectionEnvAlloc

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Techniques of Conversion and Mixing
  2. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  3. Drawings: Background Views
  4. Drawings: Drawing Dimension Attachments and Dimension Creation
  5. Event-driven Programming: External Objects: Selection Data for External Objects
  6. Event-driven Programming: External Objects: Selecting the Node from the External Application Tree
  7. Fundamentals: Expandable Arrays
  8. Annotations: Geometric Tolerances: ProGtol
  9. User Interface: Menus, Commands, and Popupmenus: Adding a PushButton
  10. Annotations: Annotation Features and Annotations: Interactive Selection
  11. Annotations: Annotation Features and Annotations: Notes
  12. Model-Based Definition and Drawing Tables: Selecting Drawing Tables and Cells
  13. Migrating to Creo Object TOOLKIT C++: Migrating Applications Using Tools
  14. Migrating to the Multibody Environment: Update in API Implementation to Support Multibody
  15. User Interface: Selection: The Selection Object
  16. User Interface: Selection: ProSelection Function Examples
  17. User Interface: Selection: Interactive Selection
  18. User Interface: Selection: Highlighting
  19. Creo Simulate: Items: Selection of Creo Simulate Items

Sample Code References:

  1. pt_af_examples ( PTAFExNotesToPlane.c )
  2. pt_examples ( TestAnalysis.c )
  3. pt_examples ( TestAnalysisCompCurve.c )
  4. pt_examples ( TestAnalysisCsys.c )
  5. pt_examples ( TestAnalysisCurve.c )
  6. pt_examples ( TestAnalysisSrfCurve.c )
  7. pt_examples ( TestAnalysisSrfCurve.c )
  8. pt_examples ( TestAnalysisSurface.c )
  9. pt_examples ( TestAnimation.c )
  10. pt_examples ( TestAsm.c )
  11. pt_examples ( TestAsm.c )
  12. pt_examples ( TestAsm.c )
  13. pt_examples ( TestAsm.c )
  14. pt_examples ( TestAsm.c )
  15. pt_examples ( TestDrag.c )
  16. pt_examples ( TestExtref.c )
  17. pt_examples ( TestExtref.c )
  18. pt_examples ( TestExtref.c )
  19. pt_examples ( TestExtref.c )
  20. pt_examples ( TestExtrefInfo.c )
  21. pt_examples ( TestExtrefInfo.c )
  22. pt_examples ( TestExtrefInfo.c )
  23. pt_examples ( TestExtrefInfo.c )
  24. pt_examples ( TestExtrefInfo.c )
  25. pt_examples ( TestExtrefInfo.c )
  26. pt_examples ( TestMechanism.c )
  27. pt_examples ( TestWeld.c )
  28. pt_examples ( TestDimension.c )
  29. pt_examples ( TestDimension.c )
  30. pt_examples ( TestDimension.c )
  31. pt_examples ( TestDimension.c )
  32. pt_examples ( TestDimension.c )
  33. pt_examples ( TestDimension.c )
  34. pt_examples ( TestDimension.c )
  35. pt_examples ( TestDimension.c )
  36. pt_examples ( TestDimension.c )
  37. pt_examples ( TestDimension.c )
  38. pt_examples ( TestInterface.c )
  39. pt_examples ( TestInterface.c )
  40. pt_examples ( TestInterface.c )
  41. pt_examples ( TestInterface.c )
  42. pt_examples ( TestSolid.c )
  43. pt_examples ( TestDispObject.c )
  44. pt_examples ( TestDispObject.c )
  45. pt_examples ( TestExtobj.c )
  46. pt_examples ( TestExtobj.c )
  47. pt_examples ( TestExtobj.c )
  48. pt_examples ( TestExtobj.c )
  49. pt_examples ( TestFamTab.c )
  50. pt_examples ( TestFamTab.c )
  51. pt_examples ( TestFamTab.c )
  52. pt_examples ( TestFamTab.c )
  53. pt_examples ( TestFamTab.c )
  54. pt_examples ( TestFeats.c )
  55. pt_examples ( TestFeats.c )
  56. pt_examples ( TestFeats.c )
  57. pt_examples ( TestFeats.c )
  58. pt_examples ( TestFeats.c )
  59. pt_examples ( TestFeats.c )
  60. pt_examples ( TestFeats.c )
  61. pt_examples ( TestFeats.c )
  62. pt_examples ( TestFeats.c )
  63. pt_examples ( TestFeats.c )
  64. pt_examples ( TestPatternCreate.c )
  65. pt_examples ( TestPatternCreate.c )
  66. pt_examples ( TestPatternCreate.c )
  67. pt_examples ( TestPatternCreate.c )
  68. pt_examples ( TestPatternCreate.c )
  69. pt_examples ( TestPatternCreate.c )
  70. pt_examples ( TestPatternCreate.c )
  71. pt_examples ( TestPatternCreate.c )
  72. pt_examples ( TestPatternCreate.c )
  73. pt_examples ( TestPatternCreate.c )
  74. pt_examples ( TestPatternCreate.c )
  75. pt_examples ( TestPatternCreate.c )
  76. pt_examples ( TestPatternCreate.c )
  77. pt_examples ( TestPatternCreate.c )
  78. pt_examples ( TestPatternCreate.c )
  79. pt_examples ( SketchFeatureCreate.c )
  80. pt_examples ( SketchFeatureCreate.c )
  81. pt_examples ( SketchFeatureCreate.c )
  82. pt_examples ( SketchFeatureCreate.c )
  83. pt_examples ( SketchFeatureCreate.c )
  84. pt_examples ( SketchFeatureCreate.c )
  85. pt_examples ( SketchFeatureCreate.c )
  86. pt_examples ( TestDtmPln.c )
  87. pt_examples ( TestDtmPln.c )
  88. pt_examples ( TestDtmPln.c )
  89. pt_examples ( TestExtrude.c )
  90. pt_examples ( TestExtrude.c )
  91. pt_examples ( TestExtrude.c )
  92. pt_examples ( TestExport.c )
  93. pt_examples ( TestGeom.c )
  94. pt_examples ( TestGeom.c )
  95. pt_examples ( TestGeom.c )
  96. pt_examples ( TestGeom.c )
  97. pt_examples ( TestGeom.c )
  98. pt_examples ( TestGeom.c )
  99. pt_examples ( TestGeom.c )
  100. pt_examples ( TestGeom.c )
  101. pt_examples ( TestGeom.c )
  102. pt_examples ( TestMeasure.c )
  103. pt_examples ( TestXsec.c )
  104. pt_examples ( TestXsec.c )
  105. pt_examples ( TestDrawTbl.c )
  106. pt_examples ( TestDrawTbl.c )
  107. pt_examples ( TestDrawTbl.c )
  108. pt_examples ( TestDrawTbl.c )
  109. pt_examples ( TestDrawTbl.c )
  110. pt_examples ( TestDrwSimprep.c )
  111. pt_examples ( TestDrwView.c )
  112. pt_examples ( TestDrwView.c )
  113. pt_examples ( TestDrwView.c )
  114. pt_examples ( TestDrwView.c )
  115. pt_examples ( TestDrwView.c )
  116. pt_examples ( TestDrwView.c )
  117. pt_examples ( TestDrwView.c )
  118. pt_examples ( TestDtlentity.c )
  119. pt_examples ( TestDtlgroup.c )
  120. pt_examples ( TestDtlgroup.c )
  121. pt_examples ( TestDtlgroup.c )
  122. pt_examples ( TestDtlnote.c )
  123. pt_examples ( TestDtlnote.c )
  124. pt_examples ( TestDtlnote.c )
  125. pt_examples ( TestDtlsyminst.c )
  126. pt_examples ( TestDtlsyminst.c )
  127. pt_examples ( TestGraphics.c )
  128. pt_examples ( TestGraphics.c )
  129. pt_examples ( TestLayer.c )
  130. pt_examples ( TestLayer.c )
  131. pt_examples ( TestLayer.c )
  132. pt_examples ( TestLayer.c )
  133. pt_examples ( TestRay.c )
  134. pt_examples ( TestSymDefMenu.c )
  135. pt_examples ( TestSymDefMenu.c )
  136. pt_examples ( TestSymDefMenu.c )
  137. pt_examples ( TestSymDefMenu.c )
  138. pt_examples ( TestCavityLayout.c )
  139. pt_examples ( TestCavityLayout.c )
  140. pt_examples ( TestClCmd.c )
  141. pt_examples ( TestClCmd.c )
  142. pt_examples ( TestMfgOper.c )
  143. pt_examples ( UtilMfgNew.c )
  144. pt_examples ( UtilMfgNew.c )
  145. pt_examples ( UtilMfgNew.c )
  146. pt_examples ( UtilMfgNew.c )
  147. pt_examples ( UtilMfgNew.c )
  148. pt_examples ( UtilMfgNew.c )
  149. pt_examples ( TestMisc.c )
  150. pt_examples ( TestGtol.c )
  151. pt_examples ( TestGtol.c )
  152. pt_examples ( TestGtol.c )
  153. pt_examples ( TestGtol.c )
  154. pt_examples ( TestGtol.c )
  155. pt_examples ( TestGtol.c )
  156. pt_examples ( TestGtol.c )
  157. pt_examples ( TestGtol.c )
  158. pt_examples ( TestGtol.c )
  159. pt_examples ( TestGtol.c )
  160. pt_examples ( TestGtol.c )
  161. pt_examples ( TestParams.c )
  162. pt_examples ( TestRelation.c )
  163. pt_examples ( TestSetup.c )
  164. pt_examples ( TestSetup.c )
  165. pt_examples ( TestSetup.c )
  166. pt_examples ( TestSetup.c )
  167. pt_examples ( TestSetup.c )
  168. pt_examples ( TestSetup.c )
  169. pt_examples ( UtilSect.c )
  170. pt_examples ( UtilSect.c )
  171. pt_examples ( UtilSect.c )
  172. pt_examples ( UtilSect.c )
  173. pt_examples ( UtilSect.c )
  174. pt_examples ( UtilSect.c )
  175. pt_examples ( UtilSect.c )
  176. pt_examples ( UtilSect.c )
  177. pt_examples ( UtilSect.c )
  178. pt_examples ( UtilSect.c )
  179. pt_examples ( UtilSect.c )
  180. pt_examples ( TestSelect.c )
  181. pt_examples ( TestSelect.c )
  182. pt_examples ( TestSelect.c )
  183. pt_examples ( TestSelect.c )
  184. pt_examples ( TestSelect.c )
  185. pt_examples ( TestSelect.c )
  186. pt_examples ( TestRule.c )
  187. pt_examples ( TestRule.c )
  188. pt_examples ( TestSimpRep.c )
  189. pt_examples ( TestCollect.c )
  190. pt_examples ( TestCollect.c )
  191. pt_examples ( TestCollect.c )
  192. pt_examples ( TestCollect.c )
  193. pt_examples ( TestCollect.c )
  194. pt_examples ( TestCollect.c )
  195. pt_examples ( TestCollect.c )
  196. pt_geardesign ( GearDesign.c )
  197. pt_geardesign ( GearDesign.c )
  198. pt_mech_examples ( PTMechExCopy.c )
  199. pt_mech_examples ( PTMechExLoadMenu.c )
  200. pt_udf_examples ( PTUDFExUDFPlacementDashboard.c )
  201. pt_userguide ( UgAnimAsmcompAnim.c )
  202. pt_userguide ( UgAsmcompConstraint.c )
  203. pt_userguide ( UgAsmcompConstraint.c )
  204. pt_userguide ( UgAsmcompConstraint.c )
  205. pt_userguide ( UgAsmcompTransfGet.c )
  206. pt_userguide ( UgDatumCreate.c )
  207. pt_userguide ( UgDimDisplayRounded.c )
  208. pt_userguide ( UgDimDisplayRounded.c )
  209. pt_userguide ( UgDimLocationUtils.c )
  210. pt_userguide ( UgDimLocationUtils.c )
  211. pt_userguide ( UgDimsChange.c )
  212. pt_userguide ( UgDimsChange.c )
  213. pt_userguide ( UgDrawingDimensions.c )
  214. pt_userguide ( UgDtlgroupExamples.c )
  215. pt_userguide ( UgDtlnoteExamples.c )
  216. pt_userguide ( UgDwgtableExamples.c )
  217. pt_userguide ( UgNoteCreate.c )
  218. pt_userguide ( UgExtAnalysisSurfcsys.c )
  219. pt_userguide ( UgFamtabUse.c )
  220. pt_userguide ( Ug3DSectSplineDim.c )
  221. pt_userguide ( Ug3DSection.c )
  222. pt_userguide ( Ug3DSection.c )
  223. pt_userguide ( Ug3DSection.c )
  224. pt_userguide ( Ug3DSection.c )
  225. pt_userguide ( Ug3DSection.c )
  226. pt_userguide ( Ug3DSection.c )
  227. pt_userguide ( Ug3DSweepCreate.c )
  228. pt_userguide ( Ug3DSweepCreate.c )
  229. pt_userguide ( UgChamferTemplate.c )
  230. pt_userguide ( UgCreoSweepCreate.c )
  231. pt_userguide ( UgDatumAxisCreate.c )
  232. pt_userguide ( UgDatumAxisCreate.c )
  233. pt_userguide ( UgDraftTemplate.c )
  234. pt_userguide ( UgDraftTemplate.c )
  235. pt_userguide ( UgDraftTemplate.c )
  236. pt_userguide ( UgEdgeChamferCreate.c )
  237. pt_userguide ( UgEdgeRoundCreate.c )
  238. pt_userguide ( UgEdgeRoundCreate.c )
  239. pt_userguide ( UgEdgeRoundCreate.c )
  240. pt_userguide ( UgFieldPointCreate.c )
  241. pt_userguide ( UgFlexModelCreate.c )
  242. pt_userguide ( UgFlexModelCreate.c )
  243. pt_userguide ( UgGeneralCsysCreate.c )
  244. pt_userguide ( UgGeneralPointCreate.c )
  245. pt_userguide ( UgGeneralPointCreate.c )
  246. pt_userguide ( UgGeneralPointCreate.c )
  247. pt_userguide ( UgHoleCreate.c )
  248. pt_userguide ( UgHoleCreate.c )
  249. pt_userguide ( UgHoleCreate.c )
  250. pt_userguide ( UgIntcollectionDraftCreate.c )
  251. pt_userguide ( UgOffsetPointCreate.c )
  252. pt_userguide ( UgRemoveSurfCreate.c )
  253. pt_userguide ( UgRoundTemplate.c )
  254. pt_userguide ( UgRoundTemplate.c )
  255. pt_userguide ( UgRoundTemplate.c )
  256. pt_userguide ( UgSimpleDraftCreate.c )
  257. pt_userguide ( UgSimpleDraftCreate.c )
  258. pt_userguide ( UgSimpleDraftCreate.c )
  259. pt_userguide ( UgSketchedCurveCreate.c )
  260. pt_userguide ( UgSketchedCurveCreate.c )
  261. pt_userguide ( UgSketchedPointCreate.c )
  262. pt_userguide ( UgSketchedPointCreate.c )
  263. pt_userguide ( UgSktExtrusionCreate.c )
  264. pt_userguide ( UgSktExtrusionCut.c )
  265. pt_userguide ( UgSktExtrusionCut.c )
  266. pt_userguide ( UgSktExtrusionProtrusion.c )
  267. pt_userguide ( UgSktExtrusionProtrusion.c )
  268. pt_userguide ( UgSktExtrusionProtrusionExtSkt.c )
  269. pt_userguide ( UgSktExtrusionSurfaceCapped.c )
  270. pt_userguide ( UgSktExtrusionSurfaceCapped.c )
  271. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  272. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  273. pt_userguide ( UgSktExtrusionTemplate.c )
  274. pt_userguide ( UgSktExtrusionTemplate.c )
  275. pt_userguide ( UgSktExtrusionThin.c )
  276. pt_userguide ( UgSktExtrusionThin.c )
  277. pt_userguide ( UgSktRevolveProtrusion.c )
  278. pt_userguide ( UgSktRevolveProtrusion.c )
  279. pt_userguide ( UgSktRevolveProtrusionExtSkt.c )
  280. pt_userguide ( UgSktRevolveProtrusionExtSkt.c )
  281. pt_userguide ( UgSktRevolveSurface.c )
  282. pt_userguide ( UgSktRevolveSurface.c )
  283. pt_userguide ( UgSktRevolveTemplate.c )
  284. pt_userguide ( UgSktRevolveTemplate.c )
  285. pt_userguide ( UgSktRevolveThinCut.c )
  286. pt_userguide ( UgSktRevolveThinCut.c )
  287. pt_userguide ( UgXMLFeat.c )
  288. pt_userguide ( UserSelectSurface.c )
  289. pt_userguide ( UgGeomArcDiaDisp.c )
  290. pt_userguide ( UgGeomChildDisp.c )
  291. pt_userguide ( UgGeomConeAngDisp.c )
  292. pt_userguide ( UgGeomHoleSrfDisp.c )
  293. pt_userguide ( UgGeomInterferCheck.c )
  294. pt_userguide ( UgGeomInterferCheck.c )
  295. pt_userguide ( UgGeomInterferCheck.c )
  296. pt_userguide ( UgGeomSurfRename.c )
  297. pt_userguide ( UgGraphZoomAtPoint.c )
  298. pt_userguide ( UgGtolCreate.c )
  299. pt_userguide ( UgGtolCreate.c )
  300. pt_userguide ( UgModelLayerCreate.c )
  301. pt_userguide ( UgModelLayerItemsAdd.c )
  302. pt_userguide ( UgParamFeatLabel.c )
  303. pt_userguide ( UgRelsEdit.c )
  304. pt_userguide ( UgSimprepCreate.c )
  305. pt_userguide ( UgSolidNoteCreate.c )
  306. pt_userguide ( UgSolidOutlineComp.c )
  307. pt_userguide ( UgUISlider.c )
  308. pt_userguide ( UgXsecMassProps.c )
  309. pt_userguide ( UgXsecMassProps.c )
  310. pt_userguide ( UgXsecMassProps.c )