Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
gustavo.cassel
427 Views, 7 Replies

Open DrawingDocument with break reference

Hello!!

I'm trying to build a system to open and test some properties and references of drawings in a entire assembly.

What i'm searching for is broken references, wrong properties, missing drawings and so on.

But i'm having an issue when I try to open a drawing that was copied from another and the old one do not exists anymore.

When I open it, Inventor start to search for the reference in the project folder ( which is giant ) and take a lot of time to finally open the file browser.

 

I've tryied to use the OpenWithOptions method, like below:

 

 

NameValueMap map = Global.InventorApplication.TransientObjects.CreateNameValueMap();
map.Add("SkipAllUnresolvedFiles", true);
map.Add("DeferUpdates", false);

DrawingDocument drawingDocument = Global.InventorApplication.Documents.OpenWithOptions("the path here", map, true) as DrawingDocument;

 

 

But it not works. The inventor try anyway look the entire project folder and it takes like 2-3 minutes.

I want a way to force open without look for the reference, like in the assemblies when an icon of a folder with a question mark inside.