<?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: VB Code to Disable / Bypass Update Prompt at File Open in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463580#M136225</link>
    <description>&lt;P&gt;That worked!&amp;nbsp; Thanks so much!&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2012 15:48:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-18T15:48:06Z</dc:date>
    <item>
      <title>VB Code to Disable / Bypass Update Prompt at File Open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463222#M136223</link>
      <description>&lt;P&gt;Using Inventor 2012, I am writing VB code that opens, updates, changes parameters, and saves and closes a file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My process so far opens one file, updates the parameters, saves, then opens the assembly file linked to the previous file&amp;nbsp;to update, save, and close.&amp;nbsp; The trouble I'm having is when I open the second file, Inventor prompts me to update the assembly, and won't do anything until I click yes (see attachment).&amp;nbsp; Is there a way to either disable this prompt, or add VB code that would click YES everytime to update the file?&amp;nbsp; Or perhaps a setting within Inventor that automatically saves and updates when you open instead of doing it in VB code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, when the assembly file closes, it asks if I want to save it AND all the parts included in the assembly.&amp;nbsp; I want it to click YES everytime to make sure it saves.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through a web search, I found the .DisplayAlerts = True/False line, but it does not appear to work in my code&lt;/P&gt;&lt;P&gt;(i.e. if I use&amp;nbsp; _invApp.DisplayAlerts = False).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for opening the second file (the .iam file) is basic and simplistic, as I am still new to this and learning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _invApp.Documents.Open(&lt;FONT face="Consolas" color="#a31515" size="2"&gt;&lt;FONT face="Consolas" color="#a31515" size="2"&gt;&lt;FONT face="Consolas" color="#a31515" size="2"&gt;"filename.iam"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _invApp.ActiveDocument.Update()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _invApp.ActiveDocument.Save()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reading all this and thanks&amp;nbsp;in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 13:48:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463222#M136223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: VB Code to Disable / Bypass Update Prompt at File Open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463516#M136224</link>
      <description>&lt;P&gt;Try the Application.SilentOperation.&amp;nbsp; When this property is set to True all dialogs should be suppressed.&amp;nbsp; A default answer has been defined for all dialogs and when this is True the default will be used.&amp;nbsp; You'll probably need to test it a bit to verify that the default is what you want, but it typically is.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 15:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463516#M136224</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2012-05-18T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: VB Code to Disable / Bypass Update Prompt at File Open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463580#M136225</link>
      <description>&lt;P&gt;That worked!&amp;nbsp; Thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 15:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/3463580#M136225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T15:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: VB Code to Disable / Bypass Update Prompt at File Open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/9298904#M136226</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing the same issue.&lt;/P&gt;&lt;P&gt;I've created a part and and assembly. The assembly is linked to the part (= the parameters are in the part and the assembly get these).&lt;/P&gt;&lt;P&gt;Through an Userform VBA I would like, at the same time, to update the part (I've done) and the assembly and the related .idw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you kindly share your code,&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 17:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vb-code-to-disable-bypass-update-prompt-at-file-open/m-p/9298904#M136226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T17:04:01Z</dc:date>
    </item>
  </channel>
</rss>

