Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlDependenciesDataList


Description
Finds the first-level dependencies for an object in the Creo Parametric workspace. Be sure to cleanup dependencies database by calling ProMdlDependenciesCleanup() to ensure up to date results. Note: The returned dependencies are not sorted. 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::ListDependencies
Synopsis
#include <ProMdl.h>
ProErrorProMdlDependenciesDataList(
ProMdl model
/* (In)
A valid model pointer. Cannot be NULL.
*/
ProMdlnameShortdata** p_dependencies_list
/* (Out)
A ProArray of dependencies. 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 the p_dependencies_list (or less if returns PRO_TK_BAD_CONTEXT). Cannot be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDNo dependencies were found.
PRO_TK_BAD_CONTEXTSome dependencies could not be processed and were skipped. In this case p_count will be less than the length of both ProArrays.
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

Sample Code References:

  1. pt_examples ( TestDbms.c )
  2. pt_examples ( TestDbms.c )