Category Creo Parametric fundamentals, Object ProMdl

Function ProSessionMdlList


Description
Retrieves the list of objects of the specified type in the Creo Parametric workspace.
Replacement in Object TOOLKIT: pfcBaseSession::ListModels
pfcBaseSession::ListModelsByType
Synopsis
#include <ProMdl.h>
ProErrorProSessionMdlList(
ProMdlType model_type
/* (In)
A valid model type (PRO_PART, PRO_ASSEMBLY, and so on).
*/
ProMdl** p_model_array
/* (Out)
An array of objects found. The function allocates the memory for this argument. To free it, call the function ProArrayFree().
*/
int* p_count
/* (Out)
The number of models in p_model_array.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDNo objects were found in the workspace.
PRO_TK_BAD_INPUTSThe input argument is invalid.
See Also
ProArrayFree

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Models and Model Items: Models in Session
  3. Core: Models and Model Items: Models in Session

Sample Code References:

  1. pt_examples ( TestExtref.c )
  2. pt_examples ( TestExtref.c )
  3. pt_examples ( TestExtrefInfo.c )
  4. pt_examples ( TestExtrefInfo.c )
  5. pt_examples ( TestExtrefInfo.c )
  6. pt_examples ( TestDbms.c )
  7. pt_examples ( TestDbms.c )
  8. pt_examples ( TestDrawTbl.c )
  9. pt_examples ( TestDrwSimprep.c )