API Documentation > Creo Parametric fundamentals > Object ProMdl > Function ProMdlDependenciesDataList
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:
Synopsis
#include <ProMdl.h>
ProMdlDependenciesDataList
(
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
The function successfully retrieved the information.
No dependencies were found.
Some dependencies could not be processed and were skipped. In this case p_count will be less than the length of both ProArrays.
The input argument is invalid.
See Also
Sample Code References
User Guide References
Was this helpful?