Where used of a file

Where used of a file

ngocson8335
Advocate Advocate
1,002 Views
9 Replies
Message 1 of 10

Where used of a file

ngocson8335
Advocate
Advocate

Hello everyone,

 

How can I find where is the part used in a project by vb? Please help me in this case!

 

Thank you.

Ngoc Son

Ngoc Son
Autodesk User
Accepted solutions (1)
1,003 Views
9 Replies
Replies (9)
Message 2 of 10

WCrihfield
Mentor
Mentor

I believe that capability is only available when you have Vault installed and set-up.

Do you have Vault?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 10

ngocson8335
Advocate
Advocate

No I do not

Ngoc Son
Autodesk User
0 Likes
Message 4 of 10

bradeneuropeArthur
Mentor
Mentor

Correct that you need vault API for that.

Or you need to have the parent relation opened in inventor, but then you already know where the file is used.

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 10

WCrihfield
Mentor
Mentor
Accepted solution

@ngocson8335 

Without Vault, the alternative is pretty much an impossibly large, time consuming, and system resource heavy task.

In theory, you could create utility that would check each Inventor file within your entire Project workspace, by accessing its 'AllReferencedDocuments', and comparing each referenced document object with the target document object.  Then, when a match is found, adding the file name to some sort of list or text file.

Depending on the overall number of Inventor files you have within your project's workspace directory (and its sub directories), this will almost certainly lock-up/freeze your system, or worse.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 10

ngocson8335
Advocate
Advocate

Thank you guy for your answer. Now I am starting to use Vault in my workflow.

Ngoc Son
Autodesk User
0 Likes
Message 7 of 10

bradeneuropeArthur
Mentor
Mentor

Please would you keep me informed if you are comfortable with using Vault and what version of Vault you are using and what workflow?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 8 of 10

greggeorgi
Contributor
Contributor

For those who do not have access to vault, it is very likely that you do have design assistant installed. I believe it is normally installed alongside inventor automatically. It provides a where used functionality and some other functions. As it does not have an index like vault does, like WCrihfield said, the process can be rather slow, though not indefinite, you do get to see progress happening and it is possible to cancel the search (if you can spam cancel fast enough...) A downside is that the user will be spammed constantly with open messages for things like missing references, outdated assembly, etc. I wholly recommend vault over this, but this works if its absolutely needed. You could possibly set ThisApplication.SilentOperation to true, and set 'skip unresolved references options

before running. And then work in a different inventor session if your computer is beefy enough to do so.

 

Note that if a drawing contains components, it will be searched in the drawing, so if a drawing is made for every component in the search folders, then its best to not search drawings and components at the same time.

 

design assistant.png

Message 9 of 10

maxim.teleguz
Advocate
Advocate

what about for someone who has Vault, how would they be able to get a where used with ilogic? 

 

or a parameter?

We need to link to idw the where used so we stop entering it manually everytime. 

0 Likes
Message 10 of 10

maxim.teleguz
Advocate
Advocate

here is the ilogic code to do a where used command:

Call ThisApplication.CommandManager.ControlDefinitions.Item("VaultShowDetailsTop").Execute
0 Likes