Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlDeclaredDataList


Description
Finds all the first-level objects declared for the specified object. For example, if notebook A is declared in notebook B and notebook B is declared in part P, only notebook B will be returned. Note: In Creo 3 this function does not support names longer than 80 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for longer names will be added in a future release.
Replacement in Object TOOLKIT: pfcModel::ListDeclaredModels
Synopsis
#include <ProMdl.h>
ProErrorProMdlDeclaredDataList(
ProMdl model
/* (In)
The part, assembly or notebook. Cannot be NULL.
*/
ProMdlnameShortdata** p_declared_list
/* (Out)
A ProArray of ProModel declared object names and types. Call ProArrayFree to free this memory. Cannot be NULL.
*/
ProMdlfileType** model_file_types
/* (Out)
A ProArray of dependency types, same length as p_dependencies_list and in the same order of dependencies. Cannot be NULL.
*/
int* p_count
/* (Out)
The number of objects in p_declared_list. Cannot be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDNo objects were found.
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
  4. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  5. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  6. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions