<?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: Disable windows message boxes in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523035#M76552</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;General remark to this:&lt;/P&gt;&lt;P&gt;you should start programming your own add-ins to be flexible to this point.&lt;/P&gt;&lt;P&gt;Coding in the parts or assemblies is not that flexible as you can see now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually&amp;nbsp;it is not that difficult to program your own add ins if you familiar with I-logic!&lt;/P&gt;&lt;P&gt;Afterward you will see the benefits of add-ins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 09:11:28 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2017-11-07T09:11:28Z</dc:date>
    <item>
      <title>Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520390#M76488</link>
      <description>&lt;P&gt;I would like a way to temporarily disable any windows message boxes from appearing. Is there a setting in Inventor I can turn on/off manually or a piece of code I could include at the start of my iLogic rule?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520390#M76488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T15:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520521#M76500</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to set the Inventor.Application property&amp;nbsp;SilentOperation, like this:&lt;/P&gt;&lt;PRE&gt;ThisApplication.SilentOperation = True&lt;BR /&gt;' ... do your code stuff ...&lt;BR /&gt;ThisApplication.SilentOperation = False&lt;/PRE&gt;&lt;P&gt;But you should probably wrap your code in a Try ... Catch ... End Try block&amp;nbsp;to be sure that you always executes the last line to reset the property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This disables most of the dialog boxes from Inventor but not all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the other dialog boxes which you can't disable you could either find, or make yourself, a&amp;nbsp;helper program that waits for specific dialog boxes and activates the button you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens Bejer Pedersen&lt;/P&gt;&lt;P&gt;Developer, Symetri A/S&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.symetri.com" target="_blank"&gt;www.symetri.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:34:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520521#M76500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520594#M76501</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought this would have worked... but the message&amp;nbsp;box shows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SilentOperation&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;hi world&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:50:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520594#M76501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T15:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520626#M76502</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes your own dialog boxes are not stopped by this property, only the dialog boxes that Inventor might show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to have some kind of switch controlling your own code, then you will have to put that in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sometimes used code like this:&lt;/P&gt;&lt;PRE&gt;Dim showMsg As Boolean = True
'Remove the comment from next line to disable message boxes
'showMsg = false

If showMsg Then MsgBox( ... )&lt;/PRE&gt;&lt;P&gt;Then i just need to change one line to disable all my own message boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In an AddIn this would then be done by an application setting in an external settings file, or by using some logging framework, to enable changing this while the program is running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens Bejer Pedersen&lt;/P&gt;&lt;P&gt;Developer, Symetri A/S&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.symetri.com" target="_blank"&gt;www.symetri.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7520626#M76502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7521769#M76518</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or you could use also the inventor.silentoperation = true as follow.&lt;BR /&gt;&lt;BR /&gt;If inventor.silentoperation = false Then&lt;BR /&gt;MsgBox "text message here"&lt;BR /&gt;End if&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2017 21:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7521769#M76518</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-06T21:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7522978#M76550</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should have mentioned, the rules with message boxes in them are in numerous sub parts which are all event triggered. I was hoping there would be a way to ignore them all from the top level assembly rule. Otherwise I'll need to go in and modify all the those rules to include a bit of logic like you both mentioned.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 08:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7522978#M76550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T08:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7522987#M76551</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The iLogic code is actually just .NET code that gets compiled to a temporary dll and loaded in Inventor, and there is no way to automatically suppress ordinary Windows message boxes (as far as I know), so yes you have to modify all your rules to get this functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens Bejer Pedersen&lt;/P&gt;&lt;P&gt;Developer, Symetri A/S&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.symetri.com" target="_blank"&gt;www.symetri.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 08:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7522987#M76551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T08:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523035#M76552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;General remark to this:&lt;/P&gt;&lt;P&gt;you should start programming your own add-ins to be flexible to this point.&lt;/P&gt;&lt;P&gt;Coding in the parts or assemblies is not that flexible as you can see now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually&amp;nbsp;it is not that difficult to program your own add ins if you familiar with I-logic!&lt;/P&gt;&lt;P&gt;Afterward you will see the benefits of add-ins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523035#M76552</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-07T09:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523055#M76553</link>
      <description>&lt;P&gt;I've tried this before but failed miserably.&amp;nbsp;I had written a simple program to test in Visual Studio, which I created from the Autodesk Inventor AddIn template and was worked when stepping through it. But for some reason I couldn't get the final step complete. From what I remember it was when moving the dll file somewhere Inventor can find it so that it can load the add-in, I put in in the same folder as all the other dll's but still it wouldn't appear on the addin list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm willing to give it another go if you have any advice? What benefits do you believe I'd gain?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523055#M76553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523095#M76554</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have already given yourselves the answer I think to the point o build in code.&lt;/P&gt;&lt;P&gt;Using Add-ins and dll’s has the following advantages:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reuseability of the coding&lt;/LI&gt;&lt;LI&gt;More flexible when changes are needed.&lt;/LI&gt;&lt;LI&gt;Is not build into files.&lt;/LI&gt;&lt;LI&gt;More flexible because the complete API is available.&lt;/LI&gt;&lt;LI&gt;More flexible and easier regarding file managment&lt;/LI&gt;&lt;LI&gt;Afterward you will see that it is easier&lt;/LI&gt;&lt;LI&gt;……&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regarding the location of the add in files the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Hi,
You have already given yourselves the answer I think to the point o build in code.
Using Add-ins and dll’s has the following advantages:
•	Reuseability of the coding
•	More flexible when changes are needed.
•	Is not build into files.
•	More flexible because the complete API is available.
•	More flexible and easier regarding file managment
•	Afterward you will see that it is easier
•	……
Regarding the location of the add in files the following:&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will change your mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I you need help I am willing to!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7523095#M76554</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-07T09:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable windows message boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7525406#M76598</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some advice from my own experience. I'm new to this, have never done any programming before, and are currently working on an Add-In using Visual Studio&amp;nbsp;in VB .net as a side project on my spare time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I started out with the Add-In template as you did, adding Modules &amp;amp; Classes to contain the code for my application. I have found myself really appreciating all the good work put into the Inventor API Help. Without it, I probably would have given up a long time ago. There is a lot of useful information in the User Manual chapter to get you started. But I frequently use it to point me in the right direction to achieve what I plan to do.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding&amp;nbsp;the reason for why you abandoned your project in the past: If you add Inventor to the project in Visual Studio as the Debugging application, you can Debug directly in Visual Studio which automatically launches Inventor. Doing this automatically adds the files (.dll ++) to the correct location on your computer, so you are also able to launch Inventor separately (without Visual Studio) and use the Add-In as normal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe this is stated in the previously mentioned chapter in the API Help, so that's what I've done, and it works like a charm.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For deployment to other computers, then you should refer to the API Help for where to unpack/copy the files. (see picture below).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image001.png" style="width: 489px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/423067i122B8A8FC3D14A08/image-size/large?v=v2&amp;amp;px=999" role="button" title="image001.png" alt="image001.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image004.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/423069i9F4B49F431C78FA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image004.jpg" alt="image004.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I also&amp;nbsp;&lt;/SPAN&gt;highly recommend watching the following video by the API guru Brian Ekins, detailing VBA vs iLogic vs VB.NET and more:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://au.autodesk.com/au-online/classes-on-demand/class-catalog/classes/year-2016/inventor-professional/sd17917#chapter=0" target="_blank"&gt;http://au.autodesk.com/au-online/classes-on-demand/class-catalog/classes/year-2016/inventor-professional/sd17917#chapter=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps a little.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:53:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-windows-message-boxes/m-p/7525406#M76598</guid>
      <dc:creator>catot</dc:creator>
      <dc:date>2017-11-07T21:53:09Z</dc:date>
    </item>
  </channel>
</rss>

