<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Open DrawingDocument with break reference in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11740329#M148810</link>
    <description>&lt;P&gt;If possible you can open the dwg file in Autocad.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 17:36:02 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2023-02-08T17:36:02Z</dc:date>
    <item>
      <title>Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11732657#M148701</link>
      <description>&lt;P&gt;Hello!!&lt;/P&gt;&lt;P&gt;I'm trying to build a system to open and test some properties and references of drawings in a entire assembly.&lt;/P&gt;&lt;P&gt;What i'm searching for is broken references, wrong properties, missing drawings and so on.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tryied to use the OpenWithOptions method, like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;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;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it not works. The inventor try anyway look the entire project folder and it takes like 2-3 minutes.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11732657#M148701</guid>
      <dc:creator>gustavo.cassel</dc:creator>
      <dc:date>2023-02-06T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11732977#M148708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11880306"&gt;@gustavo.cassel&lt;/a&gt;.&amp;nbsp; Unfortunately, I do not think there is a good answer for that one.&amp;nbsp; Even when opening a file like that manually, and using the Options button in the file explorer dialog to set it to open 'Express' (instead of Full), and checking the checkbox for 'Skip all unresolved files', it still takes a long time just to figure out 'if' there are any 'unresolved' files that it would need to skip.&amp;nbsp; I would assume that something like Vault would help with those types of situations, but I do not have Vault yet, so I could not confirm that.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; I did notice however, that when opening a drawing manually, using Inventor's Open dialog, you can either choose 'Full' and 'Skip all unresolved files' or you can choose 'Defer', but you can not use 'Defer' and 'Skip all unresolved files' together.&amp;nbsp; Maybe that is a hint to how you should set those settings when opening by code using OpenWithOptions.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 13:12:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11732977#M148708</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-02-06T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11733200#M148715</link>
      <description>&lt;P&gt;I was just looking into another related topic, and came across something that I had forgotten about, that may be helpful in your situation.&amp;nbsp; I don't know if you are familiar with creating your own custom event handler codes or not, but there is an event (&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=FileUIEvents_OnFileOpenDialog" target="_blank" rel="noopener"&gt;FileUIEvents.OnFileOpenDialog&lt;/A&gt;) for when you use the Open Dialog to open an Inventor document, which appears to have an additional property ("FastOpen") related to drawings specifically, that is not mentioned in the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Documents_OpenWithOptions" target="_blank" rel="noopener"&gt;OpenWithOptions&lt;/A&gt; method.&amp;nbsp; Since the other options involved include the ones we are already familiar with from the other method, this 'FastOpen' property sure sounds like something you could look into for speeding up this process.&amp;nbsp; However, since this only seems to apply to when you are using the Open Dialog to open a file, I don't know if this will help in your situation or not.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:25:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11733200#M148715</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-02-06T14:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739087#M148789</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;, i've tested your methods and none worked out.&lt;/P&gt;&lt;P&gt;I guess it can't be solved.&lt;/P&gt;&lt;P&gt;Even if I open the drawing with the DeferUpdates, or the SkipAllUnresolvedFiles, the Inventor tryies to search ALL the project folder to find the missing reference.&lt;/P&gt;&lt;P&gt;I've tryied the SilentOperation property too, no sucess.&lt;/P&gt;&lt;P&gt;Guess we'll have to wait some fixes from the autodesk developers team.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739087#M148789</guid>
      <dc:creator>gustavo.cassel</dc:creator>
      <dc:date>2023-02-08T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739195#M148793</link>
      <description>&lt;P&gt;Use deferupdates = true&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739195#M148793</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-02-08T11:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739467#M148798</link>
      <description>&lt;P&gt;Have you read my answer above?&lt;/P&gt;&lt;P&gt;I've actually tested all this methods, but the problem is that the Inventor ALWAYS try to find the rtight reference. It tooks me like 3 minutes to search all my project folder.&lt;/P&gt;&lt;P&gt;Even if I set the&amp;nbsp;DeferUpdates to true inside a NameValueMap and pass it as parameter in the OpenWithOptions method. The same with the&amp;nbsp;SkipAllUnresolvedFiles.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:00:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739467#M148798</guid>
      <dc:creator>gustavo.cassel</dc:creator>
      <dc:date>2023-02-08T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739583#M148803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11880306"&gt;@gustavo.cassel&lt;/a&gt;.&amp;nbsp; This most likely will not help this situation any further, but I thought that this would be a good place for such information, just in case.&amp;nbsp; To set the 'defaults' for some of those settings related to performance when opening Inventor documents, there are a few places you can look, and a few settings that may be of interest.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Application Options &amp;gt; File dab &amp;gt; click the [File Open...] button at the bottom.
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;Within that little pop-up dialog, you can set 'default' values for several related settings.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Application Options &amp;gt; Assembly tab are a couple settings of interest.
&lt;UL&gt;
&lt;LI&gt;Defer Updates - Nice to have On/checked in some situations, but I usually leave it Off, when not needed
&lt;UL&gt;
&lt;LI&gt;This setting is within the Document Settings of drawings, instead of in the Application Options&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Express Mode Settings - setting the number lower helps induce Express Mode sooner&lt;/LI&gt;
&lt;LI&gt;Enable relationship redundancy analysis
&lt;UL&gt;
&lt;LI&gt;This setting may also cause a bit of slowness sometimes, but I like it On most of the time.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Application Options &amp;gt; Drawing &amp;gt; Enable background updates - is obviously a 'performance' related setting&lt;/LI&gt;
&lt;LI&gt;When a Drawing is open/active &amp;gt; Tools tab &amp;gt; Document Settings &amp;gt; Drawing tab &amp;gt; Defer Updates setting
&lt;UL&gt;
&lt;LI&gt;This could be set in the Template file to perpetuate it into all new documents&lt;/LI&gt;
&lt;LI&gt;But I generally leave this Off/unchecked most of the time&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:38:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11739583#M148803</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-02-08T13:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open DrawingDocument with break reference</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11740329#M148810</link>
      <description>&lt;P&gt;If possible you can open the dwg file in Autocad.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-drawingdocument-with-break-reference/m-p/11740329#M148810</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-02-08T17:36:02Z</dc:date>
    </item>
  </channel>
</rss>

