cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Toolkit: How to get and update/delete list of missing/failed dependencies?

Highlighted
Garnet

Toolkit: How to get and update/delete list of missing/failed dependencies?

I wan to fetch list of missing/failed dependencies, check the name of missing model and then want to update the dependency.

 

any help would be great.

Tags (1)
6 REPLIES 6
Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

use API ProMdlDependenciesDataList() to get list of dependant models. Check whether same file is present into directory where top level model is opened.

 

Thanks and Regards

Ketan

Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

yah that is true but I am stuck at updating the list of dependencies. How do I delete one?

 

Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

Correct. Could not find anything to unassemble through toolkit. Do let me know if you get some information

Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

ProMdlDependenciesCleanup() could be what you want to use ? It automatically checks against possible dependencies.

 

There is no way to directly delete deps. You remove them by deleting the component, skeletton, ... that is building up the reference, or use the dep cleanup function (remove interchange assemblys, ...).

 

Br,

Eike

Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

 
Highlighted

Re: Toolkit: How to get and update/delete list of missing/failed dependencies?

Checked and found that ProMdlDependenciesCleanup() does not alter any thing.

 

Below is what I did:

- ProMdlCurrentGet : Get current model

- ProMdlDependenciesList : Found dependency list

- Loop through all dependencies

                  - Get handler of Model

                 - Convert to Mdl

                - ProMdlDependenciesCleanup

 

 

I checked with proper simple assembly having two parts. I ran code twice and there was no change at all. Both times I got dependency count as 2.

 

Additionally, i got further confused that how to open missing reference assembly in Creo through Code. if we will load / retrieve, it will be stuck for further processing as menu manager will be activated by Creo due to missing references.

 

Thanks and Regards

Ketan

Announcements