<?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: Enable and Disable Inventor Add-In Programmatically? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11236736#M35935</link>
    <description>&lt;P&gt;Thank you all for your replies - Jelte's seems the most elegant, but they are all helpful and get the job done!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 13:05:05 GMT</pubDate>
    <dc:creator>jandrewsKUX78</dc:creator>
    <dc:date>2022-06-15T13:05:05Z</dc:date>
    <item>
      <title>Enable and Disable Inventor Add-In Programmatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11234890#M35931</link>
      <description>&lt;P&gt;Is it&amp;nbsp;possible to disable and enable Inventor (2022) add-ins via any API mechanism?&lt;BR /&gt;&lt;BR /&gt;I want to do what is shown below programmatically because when a custom Vault add-in I developed runs, it launches Inventor via COM and if the Data Standard is enabled in Inventor, it pops a login dialog that the customer does not want to see:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jandrewsKUX78_0-1655232072295.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1079787iC066C1BAE9BE755C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jandrewsKUX78_0-1655232072295.png" alt="jandrewsKUX78_0-1655232072295.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11234890#M35931</guid>
      <dc:creator>jandrewsKUX78</dc:creator>
      <dc:date>2022-06-14T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enable and Disable Inventor Add-In Programmatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11234952#M35932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7472317"&gt;@jandrewsKUX78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see this link&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/unload-add-in-using-vba/m-p/8078384#M85544" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/unload-add-in-using-vba/m-p/8078384#M85544&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:23:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11234952#M35932</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2022-06-14T19:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enable and Disable Inventor Add-In Programmatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11235003#M35933</link>
      <description>&lt;P&gt;there are 2 more options. if you know the guid of the addin then you can use this:&lt;/P&gt;
&lt;P&gt;(The guid is always in the .addin file)&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;addin&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;.&lt;SPAN&gt;ItemById&lt;/SPAN&gt;(&lt;SPAN&gt;"{34fa5034-811e-426f-8f01-42187b25e221}"&lt;/SPAN&gt;)
&lt;SPAN&gt;addin&lt;/SPAN&gt;.&lt;SPAN&gt;Deactivate&lt;/SPAN&gt;()&lt;/PRE&gt;
&lt;P&gt;but you can also search for it by name without the loop:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;addin&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.
	&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;.
	&lt;SPAN&gt;Cast&lt;/SPAN&gt;(&lt;SPAN&gt;Of&lt;/SPAN&gt; &lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt;).
	&lt;SPAN&gt;Where&lt;/SPAN&gt;(&lt;SPAN&gt;Function&lt;/SPAN&gt;(&lt;SPAN&gt;a&lt;/SPAN&gt;) &lt;SPAN&gt;a&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;.&lt;SPAN&gt;Equals&lt;/SPAN&gt;(&lt;SPAN&gt;"&lt;STRONG&gt;MyAddin&lt;/STRONG&gt;"&lt;/SPAN&gt;, &lt;SPAN&gt;StringComparison&lt;/SPAN&gt;.&lt;SPAN&gt;InvariantCultureIgnoreCase&lt;/SPAN&gt;)).
	&lt;SPAN&gt;FirstOrDefault&lt;/SPAN&gt;()
&lt;SPAN&gt;addin&lt;/SPAN&gt;.&lt;SPAN&gt;Deactivate&lt;/SPAN&gt;()&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:52:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11235003#M35933</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-06-14T19:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enable and Disable Inventor Add-In Programmatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11236361#M35934</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function too get add ins&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;()
	
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;_VaulAddin&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Try&lt;/SPAN&gt;
			&lt;SPAN&gt;_VaulAddin&lt;/SPAN&gt; = &lt;SPAN&gt;GetAddinByByName&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Vault"&lt;/SPAN&gt;)
			&lt;SPAN&gt;_VaulAddin&lt;/SPAN&gt;.&lt;SPAN&gt;Deactivate&lt;/SPAN&gt;
		&lt;SPAN&gt;Catch&lt;/SPAN&gt;
		
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		
		
		&lt;SPAN&gt;'***************** here is the ordinary code  *******************&lt;/SPAN&gt;
		&lt;SPAN&gt;Try&lt;/SPAN&gt;
			&lt;SPAN&gt;_VaulAddin&lt;/SPAN&gt; = &lt;SPAN&gt;GetAddinByByName&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Vault"&lt;/SPAN&gt;)
			&lt;SPAN&gt;_VaulAddin&lt;/SPAN&gt;.&lt;SPAN&gt;Activate&lt;/SPAN&gt;
		&lt;SPAN&gt;Catch&lt;/SPAN&gt;
		
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		
	
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	
		&lt;SPAN&gt;'***************** the function *******************&lt;/SPAN&gt;
	&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;GetAddinByByName&lt;/SPAN&gt;(&lt;SPAN&gt;displayName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt;
        &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;ThisServer&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;
            &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt; = &lt;SPAN&gt;displayName&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
                &lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
        &lt;SPAN&gt;Next&lt;/SPAN&gt;
        &lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 10:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11236361#M35934</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2022-06-15T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enable and Disable Inventor Add-In Programmatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11236736#M35935</link>
      <description>&lt;P&gt;Thank you all for your replies - Jelte's seems the most elegant, but they are all helpful and get the job done!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 13:05:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/enable-and-disable-inventor-add-in-programmatically/m-p/11236736#M35935</guid>
      <dc:creator>jandrewsKUX78</dc:creator>
      <dc:date>2022-06-15T13:05:05Z</dc:date>
    </item>
  </channel>
</rss>

