Category Creo Parametric TOOLKIT fundamentals, Object ProArray

Function ProArrayAlloc


Description
Allocates an array of objects. The maximum memory allocated is approximately 2 Mb, except for alpha_unix (or other 64-bit platforms), where the maximum is twice that. Refer to ProArrayMaxCountGet for data on getting the maximum number of objects of obj_size that can be stored in a specified ProArray.
Synopsis
#include <ProArray.h>
ProErrorProArrayAlloc(
int n_objs
/* (In)
The initial number of objects allocated in the array.
*/
int obj_size
/* (In)
The size of each object in the array
*/
int reallocation_size
/* (In)
The minimum number of objects added or deleted if Creo Parametric TOOLKIT resizes the array, e.g. on a call to ProArrayObjectAdd.
*/
ProArray* p_array
/* (Out)
The allocated array
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully allocated the array.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_OUT_OF_MEMORYThe array would be too big to allocate.

Manual References:

  1. Element Trees: Principles of Feature Creation: Feature Element Paths
  2. Element Trees: Principles of Feature Creation: Feature Elements
  3. Fundamentals: Expandable Arrays
  4. Fundamentals: Expandable Arrays
  5. Assembly: Simplified Representations: Gathering by Parameters
  6. Core: Solids, Parts, and Materials: Accessing Material Data
  7. User Interface: Selection: Interactive Selection

Sample Code References:

  1. pt_af_examples ( PTAFNotesUpdate.c )
  2. pt_af_examples ( PTMfgTemplateBOM.c )
  3. pt_autoaxis ( AutoAxis.c )
  4. pt_autoaxis ( AutoAxis.c )
  5. pt_autoaxis ( AutoAxis.c )
  6. pt_autoaxis ( AutoAxis.c )
  7. pt_autoaxis ( AutoAxis.c )
  8. pt_examples ( TestAnalysisCompCurve.c )
  9. pt_examples ( TestAnalysisCompCurve.c )
  10. pt_examples ( TestAnalysisCompCurve.c )
  11. pt_examples ( TestAnalysisCsys.c )
  12. pt_examples ( TestAnalysisCsys.c )
  13. pt_examples ( TestAnalysisCsys.c )
  14. pt_examples ( TestAnalysisCurve.c )
  15. pt_examples ( TestAnalysisCurve.c )
  16. pt_examples ( TestAnalysisSrfCurve.c )
  17. pt_examples ( TestAnalysisSrfCurve.c )
  18. pt_examples ( TestAnalysisSrfCurve.c )
  19. pt_examples ( TestAnalysisSrfCurve.c )
  20. pt_examples ( TestAnalysisSrfCurve.c )
  21. pt_examples ( TestAnalysisSrfCurve.c )
  22. pt_examples ( TestAnalysisSrfCurve.c )
  23. pt_examples ( TestAnalysisSrfCurve.c )
  24. pt_examples ( TestAnalysisSrfCurve.c )
  25. pt_examples ( TestAnalysisSrfCurve.c )
  26. pt_examples ( TestAnalysisSrfCurve.c )
  27. pt_examples ( TestAnalysisSrfCurve.c )
  28. pt_examples ( TestAnalysisSurface.c )
  29. pt_examples ( TestAnalysisSurface.c )
  30. pt_examples ( TestAnalysisSurface.c )
  31. pt_examples ( TestAnalysisSurface.c )
  32. pt_examples ( TestAnalysisSurface.c )
  33. pt_examples ( TestAnalysisSurface.c )
  34. pt_examples ( TestAnalysisSurface.c )
  35. pt_examples ( TestAnalysisSurface.c )
  36. pt_examples ( TestAnalysisSurface.c )
  37. pt_examples ( TestAnalysisSurface.c )
  38. pt_examples ( TestAnalysisSurface.c )
  39. pt_examples ( TestAnalysisSurface.c )
  40. pt_examples ( TestAnalysisSurface.c )
  41. pt_examples ( TestAnalysisSurface.c )
  42. pt_examples ( TestAnalysisSurface.c )
  43. pt_examples ( TestAnalysisSurface.c )
  44. pt_examples ( TestAnalysisSurface.c )
  45. pt_examples ( TestAnalysisSurface.c )
  46. pt_examples ( TestAnalysisSurface.c )
  47. pt_examples ( TestAnalysisSurface.c )
  48. pt_examples ( TestAnimation.c )
  49. pt_examples ( TestAnimation.c )
  50. pt_examples ( TestAsm.c )
  51. pt_examples ( TestAsm.c )
  52. pt_examples ( TestAsm.c )
  53. pt_examples ( TestAsm.c )
  54. pt_examples ( TestDrag.c )
  55. pt_examples ( TestImm.c )
  56. pt_examples ( TestImm.c )
  57. pt_examples ( TestMoldbase.c )
  58. pt_examples ( TestMoldbase.c )
  59. pt_examples ( TestMultiCADFile.c )
  60. pt_examples ( TestProcstep.c )
  61. pt_examples ( TestProcstep.c )
  62. pt_examples ( TestProcstep.c )
  63. pt_examples ( TestDbms.c )
  64. pt_examples ( TestDbms.c )
  65. pt_examples ( TestDbms.c )
  66. pt_examples ( TestDbms.c )
  67. pt_examples ( TestDbms.c )
  68. pt_examples ( TestDbms.c )
  69. pt_examples ( TestDimension.c )
  70. pt_examples ( TestDimension.c )
  71. pt_examples ( TestDimension.c )
  72. pt_examples ( TestDimension.c )
  73. pt_examples ( TestDimension.c )
  74. pt_examples ( TestDimension.c )
  75. pt_examples ( TestGeomdata.c )
  76. pt_examples ( TestGeomdata.c )
  77. pt_examples ( TestGeomdata.c )
  78. pt_examples ( TestImportfeat.c )
  79. pt_examples ( TestImportfeat.c )
  80. pt_examples ( TestInterface.c )
  81. pt_examples ( TestDispObject.c )
  82. pt_examples ( TestDispObject.c )
  83. pt_examples ( TestDispObject.c )
  84. pt_examples ( TestDispObject.c )
  85. pt_examples ( TestDispObject.c )
  86. pt_examples ( TestDispObject.c )
  87. pt_examples ( TestDispObject.c )
  88. pt_examples ( TestDispObject.c )
  89. pt_examples ( TestDispObject.c )
  90. pt_examples ( TestDispObject.c )
  91. pt_examples ( TestDispObject.c )
  92. pt_examples ( TestDispObject.c )
  93. pt_examples ( TestExtobj.c )
  94. pt_examples ( TestExtobj.c )
  95. pt_examples ( TestExtobj.c )
  96. pt_examples ( TestFamTab.c )
  97. pt_examples ( TestFamTab.c )
  98. pt_examples ( TestFamTab.c )
  99. pt_examples ( TestFeats.c )
  100. pt_examples ( TestFeats.c )
  101. pt_examples ( TestFeats.c )
  102. pt_examples ( TestFeats.c )
  103. pt_examples ( TestFeats.c )
  104. pt_examples ( TestFeats.c )
  105. pt_examples ( TestFeats.c )
  106. pt_examples ( TestFeats.c )
  107. pt_examples ( TestFeats.c )
  108. pt_examples ( TestFeats.c )
  109. pt_examples ( TestFeats.c )
  110. pt_examples ( TestFeats.c )
  111. pt_examples ( TestFeats.c )
  112. pt_examples ( TestFeats.c )
  113. pt_examples ( TestFeats.c )
  114. pt_examples ( UtilFeats.c )
  115. pt_examples ( UtilFeats.c )
  116. pt_examples ( SketchFeatureCreate.c )
  117. pt_examples ( SketchFeatureCreate.c )
  118. pt_examples ( TestDtmPln.c )
  119. pt_examples ( TestDtmPln.c )
  120. pt_examples ( TestDtmPln.c )
  121. pt_examples ( TestDtmPln.c )
  122. pt_examples ( TestDtmPln.c )
  123. pt_examples ( TestExtrude.c )
  124. pt_examples ( TestExtrude.c )
  125. pt_examples ( TestExtrude.c )
  126. pt_examples ( TestExtrude.c )
  127. pt_examples ( TestExport.c )
  128. pt_examples ( TestExport.c )
  129. pt_examples ( TestGeom.c )
  130. pt_examples ( UtilGeom.c )
  131. pt_examples ( TestDrwSheets.c )
  132. pt_examples ( TestDrwSheets.c )
  133. pt_examples ( TestDtlentity.c )
  134. pt_examples ( TestDtlentity.c )
  135. pt_examples ( TestDtlentity.c )
  136. pt_examples ( TestDtlnote.c )
  137. pt_examples ( TestDtlnote.c )
  138. pt_examples ( TestDtlsyminst.c )
  139. pt_examples ( TestGraphics.c )
  140. pt_examples ( TestGraphics.c )
  141. pt_examples ( TestGraphics.c )
  142. pt_examples ( TestLayer.c )
  143. pt_examples ( TestSymDefMenu.c )
  144. pt_examples ( TestSymDefMenu.c )
  145. pt_examples ( TestCavityLayout.c )
  146. pt_examples ( TestCavityLayout.c )
  147. pt_examples ( TestCavityLayout.c )
  148. pt_examples ( TestCavityLayout.c )
  149. pt_examples ( TestCavityLayout.c )
  150. pt_examples ( TestCavityLayout.c )
  151. pt_examples ( TestCavityLayout.c )
  152. pt_examples ( TestCavityLayout.c )
  153. pt_examples ( TestCavityLayout.c )
  154. pt_examples ( TestCavityLayout.c )
  155. pt_examples ( TestCavityLayout.c )
  156. pt_examples ( TestClCmd.c )
  157. pt_examples ( TestClCmd.c )
  158. pt_examples ( TestClCmd.c )
  159. pt_examples ( TestClCmd.c )
  160. pt_examples ( TestClCmd.c )
  161. pt_examples ( TestClCmd.c )
  162. pt_examples ( TestMfgFixt.c )
  163. pt_examples ( TestMfgFixt.c )
  164. pt_examples ( TestMfgFixt.c )
  165. pt_examples ( TestMfgMenu.c )
  166. pt_examples ( TestMfgMenu.c )
  167. pt_examples ( TestMfgMenu.c )
  168. pt_examples ( TestMfgMenu.c )
  169. pt_examples ( TestMfgMenu.c )
  170. pt_examples ( TestMfgOper.c )
  171. pt_examples ( UtilMfgWcell.c )
  172. pt_examples ( TestGtol.c )
  173. pt_examples ( TestGtol.c )
  174. pt_examples ( TestGtol.c )
  175. pt_examples ( TestGtol.c )
  176. pt_examples ( TestGtol.c )
  177. pt_examples ( TestGtol.c )
  178. pt_examples ( TestGtol.c )
  179. pt_examples ( TestRelation.c )
  180. pt_examples ( TestRelation.c )
  181. pt_examples ( TestRelation.c )
  182. pt_examples ( TestRelation.c )
  183. pt_examples ( TestSetup.c )
  184. pt_examples ( TestPartMaterial.c )
  185. pt_examples ( TestPartMaterial.c )
  186. pt_examples ( UtilSect.c )
  187. pt_examples ( UtilSect.c )
  188. pt_examples ( UtilSect.c )
  189. pt_examples ( UtilSect.c )
  190. pt_examples ( UtilSect.c )
  191. pt_examples ( UtilSect.c )
  192. pt_examples ( UtilSect.c )
  193. pt_examples ( UtilSect.c )
  194. pt_examples ( UtilSect.c )
  195. pt_examples ( UtilSect.c )
  196. pt_examples ( UtilSect.c )
  197. pt_examples ( UtilSect.c )
  198. pt_examples ( UtilSect.c )
  199. pt_examples ( UtilSect.c )
  200. pt_examples ( UtilSect.c )
  201. pt_examples ( UtilSect.c )
  202. pt_examples ( UtilSect.c )
  203. pt_examples ( UtilSect.c )
  204. pt_examples ( UtilSect.c )
  205. pt_examples ( UtilSect.c )
  206. pt_examples ( UtilSect.c )
  207. pt_examples ( UtilSect.c )
  208. pt_examples ( TestRule.c )
  209. pt_examples ( TestRule.c )
  210. pt_examples ( TestError.c )
  211. pt_examples ( UtilCable.c )
  212. pt_examples ( UtilCable.c )
  213. pt_examples ( UtilCable.c )
  214. pt_examples ( UtilCable.c )
  215. pt_examples ( UtilCable.c )
  216. pt_examples ( UtilCable.c )
  217. pt_examples ( UtilCable.c )
  218. pt_examples ( UtilCable.c )
  219. pt_examples ( UtilCable.c )
  220. pt_examples ( UtilCable.c )
  221. pt_examples ( UtilCable.c )
  222. pt_examples ( UtilCable.c )
  223. pt_examples ( UtilCable.c )
  224. pt_examples ( UtilCollect.c )
  225. pt_examples ( UtilCollect.c )
  226. pt_examples ( UtilCollect.c )
  227. pt_examples ( UtilCollect.c )
  228. pt_examples ( UtilCollect.c )
  229. pt_examples ( UtilCollect.c )
  230. pt_examples ( UtilCollect.c )
  231. pt_examples ( UtilCollect.c )
  232. pt_examples ( UtilCollect.c )
  233. pt_examples ( UtilCollect.c )
  234. pt_examples ( UtilCollect.c )
  235. pt_examples ( UtilCollect.c )
  236. pt_examples ( UtilCollect.c )
  237. pt_examples ( UtilCollect.c )
  238. pt_examples ( UtilCollect.c )
  239. pt_examples ( UtilCollect.c )
  240. pt_examples ( UtilCollect.c )
  241. pt_examples ( UtilCollect.c )
  242. pt_examples ( UtilCollect.c )
  243. pt_examples ( UtilCollect.c )
  244. pt_examples ( UtilCollect.c )
  245. pt_examples ( UtilCollect.c )
  246. pt_examples ( UtilCollect.c )
  247. pt_examples ( UtilCollect.c )
  248. pt_examples ( UtilCollect.c )
  249. pt_examples ( UtilCollect.c )
  250. pt_examples ( UtilCollectDtmpnt.c )
  251. pt_examples ( UtilCollectDtmpnt.c )
  252. pt_examples ( UtilFiles.c )
  253. pt_examples ( UtilFiles.c )
  254. pt_examples ( UtilMenu.c )
  255. pt_examples ( UtilMenu.c )
  256. pt_examples ( UtilMenu.c )
  257. pt_examples ( UtilTree.c )
  258. pt_examples ( UtilTree.c )
  259. pt_examples ( UtilTree.c )
  260. pt_geardesign ( GearDesign.c )
  261. pt_geardesign ( GearDesign.c )
  262. pt_geardesign ( GearDesign.c )
  263. pt_geardesign ( GearDesign.c )
  264. pt_geardesign ( GearDesign.c )
  265. pt_geardesign ( GearDesign.c )
  266. pt_geardesign ( GearDesignUI.c )
  267. pt_geardesign ( GearDesignUI.c )
  268. pt_geardesign ( GearDesignUI.c )
  269. pt_geardesign ( GearDesignUtils.c )
  270. pt_mech_examples ( PTMechExUtils.c )
  271. pt_mech_examples ( PTMechExUtils.c )
  272. pt_mfg_proctable ( PTMfgProcTable.c )
  273. pt_udf_examples ( PTUDFExDashboardUtils.c )
  274. pt_udf_examples ( PTUDFExDashboardUtils.c )
  275. pt_udf_examples ( PTUDFExDashboardUtils.c )
  276. pt_udf_examples ( PTUDFExParamInfo.c )
  277. pt_udf_examples ( PTUDFExParamInfo.c )
  278. pt_udf_examples ( PTUDFExUDFPlacementDashboard.c )
  279. pt_userguide ( UgAsmcompConstraint.c )
  280. pt_userguide ( UgAsmcompConstraint.c )
  281. pt_userguide ( UgAsmcompConstraint.c )
  282. pt_userguide ( UgAsmcompConstraint.c )
  283. pt_userguide ( UgDatumCreate.c )
  284. pt_userguide ( UgDrawingDimensions.c )
  285. pt_userguide ( UgDrawingDimensions.c )
  286. pt_userguide ( UgDrawingDimensions.c )
  287. pt_userguide ( UgDrawingDimensions.c )
  288. pt_userguide ( UgDtlgroupExamples.c )
  289. pt_userguide ( UgDwgtableExamples.c )
  290. pt_userguide ( UgDwgtableExamples.c )
  291. pt_userguide ( UgNoteCreate.c )
  292. pt_userguide ( UgNoteCreate.c )
  293. pt_userguide ( UgNoteCreate.c )
  294. pt_userguide ( UgExtAnalysisSurfcsys.c )
  295. pt_userguide ( UgExtAnalysisSurfcsys.c )
  296. pt_userguide ( Ug3DSectSplineDim.c )
  297. pt_userguide ( Ug3DSectSplineDim.c )
  298. pt_userguide ( Ug3DSectSplineDim.c )
  299. pt_userguide ( Ug3DSection.c )
  300. pt_userguide ( Ug3DSweepCreate.c )
  301. pt_userguide ( Ug3DSweepCreate.c )
  302. pt_userguide ( UgChamferTemplate.c )
  303. pt_userguide ( UgCreoSweepCreate.c )
  304. pt_userguide ( UgCreoSweepCreate.c )
  305. pt_userguide ( UgDatumAxisCreate.c )
  306. pt_userguide ( UgDraftTemplate.c )
  307. pt_userguide ( UgEdgeChamferCreate.c )
  308. pt_userguide ( UgEdgeRoundCreate.c )
  309. pt_userguide ( UgFieldPointCreate.c )
  310. pt_userguide ( UgFlexModelCreate.c )
  311. pt_userguide ( UgFlexModelCreate.c )
  312. pt_userguide ( UgFlexModelCreate.c )
  313. pt_userguide ( UgGeneralCsysCreate.c )
  314. pt_userguide ( UgGeneralPointCreate.c )
  315. pt_userguide ( UgHoleCreate.c )
  316. pt_userguide ( UgImportfeatCreate.c )
  317. pt_userguide ( UgImportfeatCreate.c )
  318. pt_userguide ( UgImportfeatCreate.c )
  319. pt_userguide ( UgImportfeatCreate.c )
  320. pt_userguide ( UgImportfeatCreate.c )
  321. pt_userguide ( UgImportfeatCreate.c )
  322. pt_userguide ( UgImportfeatCreate.c )
  323. pt_userguide ( UgImportfeatCreate.c )
  324. pt_userguide ( UgImportfeatCreate.c )
  325. pt_userguide ( UgImportfeatCreate.c )
  326. pt_userguide ( UgImportfeatCreate.c )
  327. pt_userguide ( UgImportfeatCreate.c )
  328. pt_userguide ( UgImportfeatCreate.c )
  329. pt_userguide ( UgImportfeatCreate.c )
  330. pt_userguide ( UgImportfeatCreate.c )
  331. pt_userguide ( UgImportfeatCreate.c )
  332. pt_userguide ( UgImportfeatCreate.c )
  333. pt_userguide ( UgImportfeatCreate.c )
  334. pt_userguide ( UgImportfeatCreate.c )
  335. pt_userguide ( UgImportfeatCreate.c )
  336. pt_userguide ( UgIntcollectionDraftCreate.c )
  337. pt_userguide ( UgOADraftCreate.c )
  338. pt_userguide ( UgOffsetPointCreate.c )
  339. pt_userguide ( UgRoundTemplate.c )
  340. pt_userguide ( UgSimpleDraftCreate.c )
  341. pt_userguide ( UgSketchedCurveCreate.c )
  342. pt_userguide ( UgSketchedCurveCreate.c )
  343. pt_userguide ( UgSketchedPointCreate.c )
  344. pt_userguide ( UgSketchedPointCreate.c )
  345. pt_userguide ( UgSktExtrusionCreate.c )
  346. pt_userguide ( UgSktExtrusionCreate.c )
  347. pt_userguide ( UgSktExtrusionCut.c )
  348. pt_userguide ( UgSktExtrusionCut.c )
  349. pt_userguide ( UgSktExtrusionProtrusion.c )
  350. pt_userguide ( UgSktExtrusionProtrusion.c )
  351. pt_userguide ( UgSktExtrusionProtrusionExtSkt.c )
  352. pt_userguide ( UgSktExtrusionSurfaceCapped.c )
  353. pt_userguide ( UgSktExtrusionSurfaceCapped.c )
  354. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  355. pt_userguide ( UgSktExtrusionSurfaceTrim.c )
  356. pt_userguide ( UgSktExtrusionTemplate.c )
  357. pt_userguide ( UgSktExtrusionTemplate.c )
  358. pt_userguide ( UgSktExtrusionThin.c )
  359. pt_userguide ( UgSktExtrusionThin.c )
  360. pt_userguide ( UgSktFirstFeatureCreate.c )
  361. pt_userguide ( UgSktFirstFeatureCreate.c )
  362. pt_userguide ( UgSktFirstFeatureRevCreate.c )
  363. pt_userguide ( UgSktFirstFeatureRevCreate.c )
  364. pt_userguide ( UgSktRevolveProtrusion.c )
  365. pt_userguide ( UgSktRevolveProtrusion.c )
  366. pt_userguide ( UgSktRevolveProtrusionExtSkt.c )
  367. pt_userguide ( UgSktRevolveSurface.c )
  368. pt_userguide ( UgSktRevolveSurface.c )
  369. pt_userguide ( UgSktRevolveTemplate.c )
  370. pt_userguide ( UgSktRevolveTemplate.c )
  371. pt_userguide ( UgSktRevolveThinCut.c )
  372. pt_userguide ( UgSktRevolveThinCut.c )
  373. pt_userguide ( UgSmtExtendWallCreate.c )
  374. pt_userguide ( UgSmtFlatWallCreate.c )
  375. pt_userguide ( UgSmtFlatWallCreate.c )
  376. pt_userguide ( UgSmtFlatWallCreate.c )
  377. pt_userguide ( UgSmtFlgWallCreate.c )
  378. pt_userguide ( UgSweepCreate.c )
  379. pt_userguide ( UgSweepCreate.c )
  380. pt_userguide ( UgFundExpArrays.c )
  381. pt_userguide ( UgGtolCreate.c )
  382. pt_userguide ( UgGtolCreate.c )
  383. pt_userguide ( UgInterfaceExport.c )
  384. pt_userguide ( UgModelCheck.c )
  385. pt_userguide ( UgModelCheck.c )
  386. pt_userguide ( UgModelCheck.c )
  387. pt_userguide ( UgModelCheck.c )
  388. pt_userguide ( UgNavigatorPane.c )
  389. pt_userguide ( UgNavigatorPane.c )
  390. pt_userguide ( UgUIMessageDisplay.c )
  391. pt_userguide ( UgUIMessageDisplay.c )
  392. pt_userguide ( UgMfgMillSeqCreate.c )
  393. pt_userguide ( UgMfgWcellCreate.c )
  394. pt_userguide ( UgMfgWcellIdentify.c )
  395. pt_userguide ( UgNcseq.c )
  396. pt_userguide ( UgNcseq.c )
  397. pt_userguide ( UgCustomRelationFunction.c )
  398. pt_userguide ( UgMaterial.c )
  399. pt_userguide ( UgMaterial.c )
  400. pt_userguide ( UgPlotUse.c )
  401. pt_userguide ( UgRelsEdit.c )
  402. pt_userguide ( UgRelsEdit.c )
  403. pt_userguide ( UgSolidNoteCreate.c )
  404. pt_userguide ( UgUIListImplement.c )
  405. pt_userguide ( UgUIListImplement.c )
  406. pt_userguide ( UgFileEdit.c )
  407. pt_userguide ( UgFileEdit.c )
  408. pt_userguide ( UgXsecMassProps.c )
  409. pt_userguide ( UgXsecMassProps.c )
  410. pt_wc_server ( PTWCServerFileUtils.c )
  411. pt_wc_server ( PTWCServerUtils.c )