How do I get rid of phantom FileDescriptors?

How do I get rid of phantom FileDescriptors?

dhaverstick
Advocate Advocate
425 Views
3 Replies
Message 1 of 4

How do I get rid of phantom FileDescriptors?

dhaverstick
Advocate
Advocate

We use BlueCielo Meridian as our Inventor document management system and I have some VB.net code that checks all the referenced documents of an assembly before that assembly is checked into Meridian's vault. Basically, what the code does is check to to see if all the referenced documents are already managed by Meridian or not. I do this by looking at all the FileDescriptor objects in AssemblyFileObject.ReferencedFileDescriptors collection.

 

Anyway...I have come across a couple of cases where a FileDescriptor object has the ReferenceMissing flag set to true even though the file it is pointing to had been previously deleted from the assembly and the assembly successfully saved since then. These "phantom" FileDescriptors are causing me fits and I cannot figure out how to get rid of them. 

 

Any suggestions? Is there some way to do a purge on the Assembly?

 

Darren Haverstick

Paul Mueller Company

0 Likes
426 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor

In the "Tools-Tab" in the Ribbon you will find the "Links" Command.

Here you can delete them!

 

links.PNG

Regards,

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

Message 3 of 4

dhaverstick
Advocate
Advocate

Thanks for that answer but how can I accomplish the same thing through the API?

 

Darren Haverstick

Paul Mueller Company

0 Likes
Message 4 of 4

dhaverstick
Advocate
Advocate

Actually, after looking into the solution you proposed, I don't think it applies to my situation. From what I have learned, that "Links" button is for listing OLE objects attached to a given Inventor file. That is not my situation at all.

 

Here is an example of what I am experiencing. I have an assembly with parts A, B, and C. I delete part C from the assembly. However, when I query the Assembly File object and look at the ReferencedFileDescriptors collection, part C is still listed. The ReferencedFileDescriptor object's ReferencedFile property is nothing, which it should be because the file isn't referenced anymore. But I do not understand why the ReferencedFileDescriptor exists in the first place. And I would really like to purge it from the Assembly File object.

 

Darren Haverstick

Paul Mueller Company

0 Likes