<?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: Application.Documents.Open with updates deferred in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127330#M155628</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12300741"&gt;@meGVGMF&lt;/a&gt;&amp;nbsp;.&amp;nbsp;You need to write the path to your file in line 3 - "&lt;U&gt;FullFileName&lt;/U&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oNVM As NameValueMap = ThisApplication.TransientObjects.CreateNameValueMap
oNVM.Add("DeferUpdates", True)
Dim oDDoc As DrawingDocument = ThisApplication.Documents.OpenWithOptions("FullFileName", oNVM)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 12:27:49 GMT</pubDate>
    <dc:creator>Andrii_Humeniuk</dc:creator>
    <dc:date>2023-07-26T12:27:49Z</dc:date>
    <item>
      <title>Application.Documents.Open with updates deferred</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127231#M155625</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to open a drawing via the Application.Documents.Open method, or else something effectively the same, that can get me the drawing document from within a different document, only with updates deferred.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to skip resolving files/opening subdocuments for a particular script because it has a huge impact on performance (lots of files, no subdocument information needed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: using Application.AssemblyOptions.DeferUpdate seems to help, but there aren't equivalent properties for the DrawingOptions or PartOptions classes, so I'm still curious to know if there's anything else that can be done.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 11:13:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127231#M155625</guid>
      <dc:creator>meGVGMF</dc:creator>
      <dc:date>2023-07-26T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Application.Documents.Open with updates deferred</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127330#M155628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12300741"&gt;@meGVGMF&lt;/a&gt;&amp;nbsp;.&amp;nbsp;You need to write the path to your file in line 3 - "&lt;U&gt;FullFileName&lt;/U&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oNVM As NameValueMap = ThisApplication.TransientObjects.CreateNameValueMap
oNVM.Add("DeferUpdates", True)
Dim oDDoc As DrawingDocument = ThisApplication.Documents.OpenWithOptions("FullFileName", oNVM)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127330#M155628</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-07-26T12:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Application.Documents.Open with updates deferred</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127787#M155636</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;But what would be the way to turn this off? Do I need to reopen the document with the option unset, or can I do it through the document object somehow?&lt;/P&gt;&lt;P&gt;Would that be through `oDoc.DrawingSettings.DeferUpdates` ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:05:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127787#M155636</guid>
      <dc:creator>meGVGMF</dc:creator>
      <dc:date>2023-07-26T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Application.Documents.Open with updates deferred</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127929#M155642</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, your guess is correct. In order for the document to be updated again, you need &lt;U&gt;&lt;STRONG&gt;DeferUpdates = False&lt;/STRONG&gt;&lt;/U&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;oDoc.DrawingSettings.DeferUpdates = False&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:35:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127929#M155642</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-07-26T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Application.Documents.Open with updates deferred</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127993#M155646</link>
      <description>Great, thanks for all the help</description>
      <pubDate>Wed, 26 Jul 2023 14:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/application-documents-open-with-updates-deferred/m-p/12127993#M155646</guid>
      <dc:creator>meGVGMF</dc:creator>
      <dc:date>2023-07-26T14:54:54Z</dc:date>
    </item>
  </channel>
</rss>

