<?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: Use VBA or iLogic to Activate Plugin in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264536#M67575</link>
    <description>&lt;P&gt;Why can't you use the add-in selves?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 14:43:05 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2020-01-21T14:43:05Z</dc:date>
    <item>
      <title>Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264390#M67574</link>
      <description>&lt;P&gt;Hi, I am wondering if there is a way to use VBA or iLogic to activate a function of a plugin we have purchased for Inventor. The plugin is designed to convert .ipt files into another format, and to use it you select parts and click a button that starts the conversion process based on the selection set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use VBA to create the selection set and click the button...if that is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my mind, there should be a way to activate a publicly accessible function with VBA, but I have been wrong about these kinds of things before...&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:56:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264390#M67574</guid>
      <dc:creator>el_jefe_de_steak</dc:creator>
      <dc:date>2020-01-21T13:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264536#M67575</link>
      <description>&lt;P&gt;Why can't you use the add-in selves?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:43:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264536#M67575</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-01-21T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264643#M67576</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not really sure what you mean by your response,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, basically, I am trying to automate the export process that this plugin will do for us. Since the plugin itself does not have an API, I would like to know if I can use Inventor's built-in API to automatically trigger a function of the plugin.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 15:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264643#M67576</guid>
      <dc:creator>el_jefe_de_steak</dc:creator>
      <dc:date>2020-01-21T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264834#M67577</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depends on how it is programmed/coded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you share the add-in, to test it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:09:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264834#M67577</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-01-21T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264868#M67578</link>
      <description>&lt;P&gt;I'm sorry, but it's a subcription-based add-in, and the files are locked until activated. The activation price is $1,000...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about we use another add-in as an example? Do you have the "revison cloud" add-in? This is available as a part of the Inventor package, but needs to be added manually. We could use that as an example. You would have to initialize the "revision cloud" button via VBA or iLogic.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9264868#M67578</guid>
      <dc:creator>el_jefe_de_steak</dc:creator>
      <dc:date>2020-01-21T16:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9270952#M67579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an overview of commands you would like to use in this add in?&lt;/P&gt;
&lt;P&gt;I mean Command-names&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 20:00:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9270952#M67579</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-01-23T20:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9270961#M67580</link>
      <description>&lt;P&gt;you can use this Code to extract all available commands within inventor.&lt;/P&gt;
&lt;P&gt;Be sure that the add in is activated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this and send me the text-file please&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub PrintCommandNames()
    Dim oControlDefs As ControlDefinitions
    Set oControlDefs = ThisApplication.CommandManager.ControlDefinitions

    Dim oControlDef As ControlDefinition
    
    Open "C:\temp\CommandNames.txt" For Output As #1

    Print #1, Tab(10); "Command Name"; Tab(75); "Description"; vbNewLine
    
    For Each oControlDef In oControlDefs

        Print #1, oControlDef.InternalName; Tab(55); oControlDef.DescriptionText
        
    Next
    Close #1
End Sub&lt;/PRE&gt;
&lt;P&gt;For i logic&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;oControlDefs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;
    &lt;SPAN&gt;oControlDefs&lt;/SPAN&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oControlDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt;
    
	&lt;SPAN&gt;'____Create and write to a text file_________________&lt;/SPAN&gt;
&lt;SPAN&gt;oWrite&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;CreateText&lt;/SPAN&gt;( &lt;SPAN&gt;"C:\temp\CommandNames.txt"&lt;/SPAN&gt;)
&lt;SPAN&gt;'oWrite.WriteLine("text in first line")&lt;/SPAN&gt;
&lt;SPAN&gt;'oWrite.WriteLine("next line")&lt;/SPAN&gt;
&lt;SPAN&gt;'oWrite.WriteLine("next line")&lt;/SPAN&gt;

&lt;SPAN&gt;'open the file&lt;/SPAN&gt;
&lt;SPAN&gt;'ThisDoc.Launch(ThisDoc.PathAndFileName(False) &amp;amp; ".txt")&lt;/SPAN&gt;

    &lt;SPAN&gt;'Open "C:\temp\CommandNames.txt" For Output As #1&lt;/SPAN&gt;

    &lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt; (&lt;SPAN&gt;"Command Name ;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;""&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"Description ;"&lt;/SPAN&gt;)
    
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oControlDef&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oControlDefs&lt;/SPAN&gt;

        &lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;( &lt;SPAN&gt;oControlDef&lt;/SPAN&gt;.&lt;SPAN&gt;InternalName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;""&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oControlDef&lt;/SPAN&gt;.&lt;SPAN&gt;DescriptionText&lt;/SPAN&gt;)
        
    &lt;SPAN&gt;Next&lt;/SPAN&gt;
    &lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;()
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 20:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9270961#M67580</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-01-23T20:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271145#M67581</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4761906"&gt;@el_jefe_de_steak&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;In my mind, there should be a way to activate a publicly accessible function with VBA, but I have been wrong about these kinds of things before...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Only if the addin expose a "publicly accessible function".&lt;/P&gt;&lt;P&gt;You need to ask the addin provider for API support and info.&lt;/P&gt;&lt;P&gt;You need to know which command to call and what parameters to pass.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271145#M67581</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2020-01-23T21:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271180#M67582</link>
      <description>&lt;P&gt;Thanks so much for the idea! I used a combination of your idea and an idea from&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;from my cross-referenced post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I used to find the command for the button was this code below. The plugin is called CMS, so I wanted to find all CMS-named control definitions.&lt;/P&gt;&lt;PRE&gt;For Each controlDefinition As ControlDefinition In ThisApplication.CommandManager.ControlDefinitions
    If (controlDefinition.DisplayName.Contains("CMS")) Then
        MsgBox(controlDefinition.InternalName)
    End If
Next&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result was rather interesting, as the control definition for this command was not named in a way that made any sense, but I was able to activate the command by using this iLogic code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'Create refrence to the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;doc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;'code to create selection set will be entered here&lt;/SPAN&gt;

&lt;SPAN&gt;'Create a refrense to the suppress ControlDefinition and execute it&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;command&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&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;"CMS:ShapeInfoAddin:PlateInfoBtn"&lt;/SPAN&gt;)
&lt;SPAN&gt;command&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 22:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271180#M67582</guid>
      <dc:creator>el_jefe_de_steak</dc:creator>
      <dc:date>2020-01-23T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use VBA or iLogic to Activate Plugin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271923#M67583</link>
      <description>&lt;P&gt;That were my thoughts too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good to hear that it works.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 08:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/use-vba-or-ilogic-to-activate-plugin/m-p/9271923#M67583</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-01-24T08:54:53Z</dc:date>
    </item>
  </channel>
</rss>

