<?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: Bug with checking ErrorManager with VBA? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5150478#M125267</link>
    <description>I don't understand what you are trying to say. Shouldn't an existing error be recorded?</description>
    <pubDate>Mon, 14 Jul 2014 12:48:46 GMT</pubDate>
    <dc:creator>pball</dc:creator>
    <dc:date>2014-07-14T12:48:46Z</dc:date>
    <item>
      <title>Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/4932720#M125264</link>
      <description>&lt;P&gt;I just want to see if anyone else has this issue or if anyone knows if this is normal before I submit a real bug report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try and check drawings for errors before exporting them with a script but my function never catches drawings with errors. I just did a little test and found a weird behavior. I took a dimensioned drawing and moved a dimension off the part and accepted the warning that the dimension was unattached to geometry. Then I ran the line of code shown below in the VBA editor Immediate window and it returned True. I then switched to another open part and then back to the drawing with the unattached dimension. The code below now returns False. The design doctor icon is still a red cross and the error is still present but the errormanager api has apparently been reset and won't show any warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;debug.Print ThisApplication.ErrorManager.HasWarnings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error manager also will not report errors when a drawing is opened and already has an error. It apparently only returns errors when the error occurs while the drawing is open and the drawing has been active since the error occurred.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/4932720#M125264</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2014-04-03T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5147300#M125265</link>
      <description>yes, it happened on me. I am not sure if it is a bug.</description>
      <pubDate>Fri, 11 Jul 2014 14:46:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5147300#M125265</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2014-07-11T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5148832#M125266</link>
      <description>&lt;P&gt;ErrorManager is for recorded errors / warnings.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2014 09:56:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5148832#M125266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-12T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5150478#M125267</link>
      <description>I don't understand what you are trying to say. Shouldn't an existing error be recorded?</description>
      <pubDate>Mon, 14 Jul 2014 12:48:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/5150478#M125267</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2014-07-14T12:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/8868267#M125268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;,&amp;nbsp;I know, it is an old thread, but I got the same problem.&lt;/P&gt;&lt;P&gt;The ErrorManager seems only to record errors who occured inside a transaction in your own add-in (or VBA).&lt;/P&gt;&lt;P&gt;The property we need does not exist yet.&lt;/P&gt;&lt;P&gt;You can support this idea if you like:&amp;nbsp;&lt;A title="New property for existing errors" href="https://forums.autodesk.com/t5/inventor-ideas/new-property-for-existing-errors/idi-p/8868254" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ideas/new-property-for-existing-errors/idi-p/8868254&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 12:15:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/8868267#M125268</guid>
      <dc:creator>thom-g</dc:creator>
      <dc:date>2019-06-24T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9031949#M125269</link>
      <description>&lt;P&gt;I got the same problem and I came up with this workaround:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;cc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CommandControl&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Ribbons&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Drawing"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;QuickAccessControls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;cc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ToUpperInvariant&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"DESIGN DOCTOR"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;cc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Clearly InternalName is better than DisplayName and I didn't test if it works when the red cross is not visible.&lt;BR /&gt;Let me know if there are some drawbacks.&lt;BR /&gt;Implementation of &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/new-property-for-existing-errors/idi-p/8868254" target="_blank" rel="noopener"&gt;your Idea&lt;/A&gt; would be the better solution.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9031949#M125269</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-09-18T09:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9032639#M125270</link>
      <description>&lt;P&gt;ignore me&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:15:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9032639#M125270</guid>
      <dc:creator>greg_fletcher</dc:creator>
      <dc:date>2019-09-18T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9032659#M125271</link>
      <description>&lt;P&gt;Haven't implemented this yet in any of my printing or exporting scripts yet but my initial testing looked good. It doesn't matter if the design doctor is shown or not in the quick access controls. I also played around to shorten up the code some more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ThisApplication.UserInterfaceManager.Ribbons.Item("Drawing").QuickAccessControls.Item("AppDesignDoctorCmd").ControlDefinition.Enabled&lt;/PRE&gt;&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3474788"&gt;@CattabianiI&lt;/a&gt; for finding and sharing this.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9032659#M125271</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2019-09-18T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9036601#M125272</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;&amp;nbsp; &amp;amp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3474788"&gt;@CattabianiI&lt;/a&gt;: Nice work arround! It also works with .Net add-ins. Thanks for sharing a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 06:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/9036601#M125272</guid>
      <dc:creator>thom-g</dc:creator>
      <dc:date>2019-09-20T06:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with checking ErrorManager with VBA?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/12645403#M125273</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"AppDesignDoctorCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Enabled&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;' or False&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bug-with-checking-errormanager-with-vba/m-p/12645403#M125273</guid>
      <dc:creator>maxim.teleguz</dc:creator>
      <dc:date>2024-03-16T22:00:23Z</dc:date>
    </item>
  </channel>
</rss>

