<?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: Inventor Ribbon Customization in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372304#M82449</link>
    <description>&lt;P&gt;The Very best option is to start writing your first add in for this.&lt;/P&gt;&lt;P&gt;All the questions and issues with ilogic are solved then.&lt;/P&gt;&lt;P&gt;I could guide you in the right direction of needed...&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 21:19:39 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2018-10-31T21:19:39Z</dc:date>
    <item>
      <title>Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371357#M82436</link>
      <description>&lt;P&gt;I have developed many external ilogic rules/commands that are fired from customized buttons in the ribbon menu. I need to push these buttons out to all users, to do this I have been exporting out the "Customization Settings" and then manually importing them on all other machines. Is there a way to automate this so I don't have to do this manually on all machines?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371357#M82436</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371405#M82437</link>
      <description>&lt;P&gt;what do you understand under Customized buttons?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:23:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371405#M82437</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T15:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371425#M82438</link>
      <description>&lt;P&gt;What do you mean by that question?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371425#M82438</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371486#M82439</link>
      <description>&lt;P&gt;how did you create your custom buttons in the inventor ribbon.&lt;/P&gt;&lt;P&gt;With:&lt;/P&gt;&lt;P&gt;-Vba or&lt;/P&gt;&lt;P&gt;-Vb.net?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371486#M82439</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371506#M82440</link>
      <description>&lt;P&gt;I just use the built in VBA Editor in Inventor.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371506#M82440</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371897#M82441</link>
      <description>&lt;P&gt;You can run the inventor exe with the xml setting!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 18:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371897#M82441</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T18:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371934#M82442</link>
      <description>&lt;P&gt;Can you elaborate on that? Not sure what you mean by running the the .exe with the .xml.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 18:53:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8371934#M82442</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T18:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372013#M82443</link>
      <description>&lt;P&gt;The following is what I am envisioning but not sure what switch to use for the customization settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/simplecontent/content/controlling-the-application-options-inventor-start.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/simplecontent/content/controlling-the-application-options-inventor-start.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:24:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372013#M82443</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372038#M82444</link>
      <description>&lt;P&gt;put this in your inventor exe shortcut:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"C:\Program Files\Autodesk\Inventor 20yy\Bin\Inventor.exe" /importcustomizations="C:\Preferences\test.xml"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372038#M82444</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372106#M82445</link>
      <description>&lt;P&gt;I found some switches and tried them but they didn't work, Inventor launched without any errors but the settings were not imported. Here are the two commands I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Inventor 2019\Bin\Inventor.exe" /IMPORTCUSTOMIZATIONS="\\kcidata\cad\cad\Inventor Customizations\2019\Migration Settings\CustomizeUserCommands 10-31-2018.XML&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Inventor 2019\Bin\Inventor.exe" /IMPORTRIBBONCUSTOMIZATIONS="\\kcidata\cad\cad\Inventor Customizations\2019\Migration Settings\CustomizeUserCommands 10-31-2018.XML&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372106#M82445</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372153#M82446</link>
      <description>&lt;P&gt;I will test it tomorrow &amp;nbsp;and will let you know. I am far from my desk right know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372153#M82446</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T20:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372155#M82447</link>
      <description>&lt;P&gt;According to the following post for Inventor 2018, the command line switch(s) may not be working. I am using 2019 and they are working, so maybe this is still an issue that is still being investigated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Inventor-2018-command-line-switch-importoptions-does-not-work.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Inventor-2018-command-line-switch-importoptions-does-not-work.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:18:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372155#M82447</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-10-31T20:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372255#M82448</link>
      <description>&lt;P&gt;I'm in the exact same boat,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2077876"&gt;@Jason.Rugg&lt;/a&gt;. I want to automate the process of adding VBA macros to the ribbon. There seem to be only two ways of doing this currently, and both of them have their issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add the command line switch to import customization settings, but that still requires manually setting that up, and even worse, it wipes out any&amp;nbsp;&lt;EM&gt;customizations&lt;/EM&gt; that the user may have done... this is a deal-breaker in my opinion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other method is using the methods avaialbe under ThisApplication.UserInterfaceManager (see &lt;A href="https://forums.autodesk.com/t5/inventor-customization/modify-ribbon-quot-customize-quot-settings-using-ilogic-vba/m-p/8263276" target="_blank"&gt;this thread&lt;/A&gt;). However, I've experienced some issues with this. I've read that these changes don't persist from session to session. And I haven't fully tested this because, the last time I tried using this to add Ribbon buttons, my Customizations XML file ended up corrupted I had to reset it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm with you and would really like to know if someone out there has developed a stable iLogic/VBA solution for automatically adding buttons to the ribbon...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:12:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372255#M82448</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-10-31T21:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372304#M82449</link>
      <description>&lt;P&gt;The Very best option is to start writing your first add in for this.&lt;/P&gt;&lt;P&gt;All the questions and issues with ilogic are solved then.&lt;/P&gt;&lt;P&gt;I could guide you in the right direction of needed...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:19:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372304#M82449</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-10-31T21:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372327#M82450</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1171223"&gt;@DRoam&lt;/a&gt;&amp;nbsp;wrote:&amp;nbsp;
&lt;P&gt;So I'm with you and would really like to know if someone out there has developed a stable iLogic/VBA solution for automatically adding buttons to the ribbon...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got this in place, but it's a bit involved... I'll try to put something together that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:31:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372327#M82450</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2018-10-31T21:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372333#M82451</link>
      <description>&lt;P&gt;Thanks very much, Curtis, I'd appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I've got this in place, but it's a bit involved...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Perhaps if you try imagining it as a spoon...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372333#M82451</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-10-31T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372341#M82452</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The Very best option is to start writing your first add in for this.&lt;/P&gt;&lt;P&gt;All the questions and issues with ilogic are solved then.&lt;/P&gt;&lt;P&gt;I could guide you in the right direction of needed...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's what I would ultimately like to do but I'm not quite ready to go down that hole yet. I don't have any experience with add-ins, and I need to get this deployed soon (and be confident that it will be stable for our many users.). I mostly have the iLogic infrastructure in place, I just need to make it more accessible in a user-friendly way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate any resources you have though, for when I do decide to tackle this.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372341#M82452</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-10-31T21:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372435#M82453</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example expects to find 3 external rules called:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Spoon Rule&lt;/LI&gt;
&lt;LI&gt;Fork Rule&lt;/LI&gt;
&lt;LI&gt;Knife Rule&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;you would change the names in the sub routines to match the name of your rules, and add subs as needed to add more buttons to the ribbon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example creates a "&lt;EM&gt;My&amp;nbsp; _____ Tools&lt;/EM&gt;' Panel on the tools tab of the ribbon for the file type of the active file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start the VBA editor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ribbon2.png" style="width: 303px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/564142i3305AE8F3AA0E631/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ribbon2.png" alt="Ribbon2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Locate the Modules folder in the Application Project and right click on it and choose Insert &amp;gt; Module&lt;/LI&gt;
&lt;LI&gt;Rename the Module something like Module_CustomRibbon&lt;/LI&gt;
&lt;LI&gt;Paste in this code:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;Sub Customize_Ribbon()

    ThisApplication.SilentOperation = True
    
    'silently create file of type
    'set the custom ribbon panel
    'then close the file

   
    ' Create a new Assembly document, using the default Assembly template.
    Dim oAssemblyDoc As AssemblyDocument
    Set oAssemblyDoc = ThisApplication.Documents.Add(kAssemblyDocumentObject, _
                ThisApplication.FileManager.GetTemplateFile(kAssemblyDocumentObject), True)
    Call SetRibbon
    oAssemblyDoc.Close
                
    ' Create a new Drawing document, using the default Drawing template.
    Dim oDrawDoc As DrawingDocument
    sTemplate = "\\SERVER\Departments\CAD\Inventor\Macros\Macro_Template.idw"
    Set oDrawDoc = ThisApplication.Documents.Add(kDrawingDocumentObject, _
                sTemplate, True)
                
    Call SetRibbon
    oDrawDoc.Close
    
    
    ' Create a new part document, using the default part template.
    Dim oPartDoc As PartDocument
    Set oPartDoc = ThisApplication.Documents.Add(kPartDocumentObject, _
                ThisApplication.FileManager.GetTemplateFile(kPartDocumentObject), True)
                
    Call SetRibbon
    oPartDoc.Close

    
    ThisApplication.SilentOperation = False

                
 End Sub
                


Sub SetRibbon()
    
    Dim oRibbon  As Inventor.Ribbon
    
    'determine file type
    If ThisApplication.ActiveDocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
        Set oRibbon = ThisApplication.UserInterfaceManager.Ribbons.Item("Assembly")
        oType = "Assembly"
    ElseIf ThisApplication.ActiveDocumentType = DocumentTypeEnum.kPartDocumentObject Then
        Set oRibbon = ThisApplication.UserInterfaceManager.Ribbons.Item("Part")
        oType = "Part"
    ElseIf ThisApplication.ActiveDocumentType = DocumentTypeEnum.kDrawingDocumentObject Then
        Set oRibbon = ThisApplication.UserInterfaceManager.Ribbons.Item("Drawing")
        oType = "Drawing"
    Else
        oType = "Unknown"
    End If
    
    
    If oType = "Unknown" Then
        Exit Sub
    End If
    
    
    'Get the "Tools" tabs
    Dim oTab As RibbonTab
    Set oTab = oRibbon.RibbonTabs.Item("id_TabTools")
    oTab.Active = True
    

    'clean up existing custom panels
    'this prevents errors when panels
    'already exists
    Dim oPanel As RibbonPanel
    For Each oPanel In oTab.RibbonPanels
        If oPanel.DisplayName = "My Assembly Tools" _
        Or oPanel.DisplayName = "My Drawing Tools" _
        Or oPanel.DisplayName = "My Part Tools" Then
            oPanel.Delete 'remove it
        
        End If
    Next

    ' Create a panels
    Dim oPanel_Assem As RibbonPanel
    Set oPanel_Assem = oTab.RibbonPanels.Add("My Assembly Tools", "ToolsTabAssemPanel", "SampleClientId")
    Dim oPanel_Draw As RibbonPanel
    Set oPanel_Draw = oTab.RibbonPanels.Add("My Drawing Tools", "ToolsTabDrawPanel", "SampleClientId")
    Dim oPanel_Part As RibbonPanel
    Set oPanel_Part = oTab.RibbonPanels.Add("My Part Tools", "ToolsTabPartPanel", "SampleClientId-3")
    
    
Dim oMacroDef As MacroControlDefinition

If oType = "Assembly" Then
    
    Set oMacroDef = ThisApplication.CommandManager.ControlDefinitions. _
    AddMacroControlDefinition("Module_iLogicRules.Bend Spoon Rule")
    
    oPanel_Assem.CommandControls.AddMacro oMacroDef, False
    
    Set oMacroDef = ThisApplication.CommandManager.ControlDefinitions. _
    AddMacroControlDefinition("Module_iLogicRules.Bend Fork Rule")
    
    oPanel_Assem.CommandControls.AddMacro oMacroDef, False
    
    Set oMacroDef = ThisApplication.CommandManager.ControlDefinitions. _
    AddMacroControlDefinition("Module_iLogicRules.Bend Knife Rule")
    
    oPanel_Assem.CommandControls.AddMacro oMacroDef, False

ElseIf oType = "Drawing" Then
    'add drawing rules code here
    
ElseIf oType = "Part" Then
     'add part rules code here
    
End If

End Sub&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Again locate the Modules folder in the Application Project and right click on it and choose Insert &amp;gt; Module&lt;/LI&gt;
&lt;LI&gt;Rename the Module something like&amp;nbsp;"Module_iLogicRules"&lt;/LI&gt;
&lt;LI&gt;Paste in this code:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;'Module_iLogicRules
'this module allows iLogic rules to be triggered
'from a VBA macro, fired from a ribbon button

Public Sub Spoon_rule()
    'ilogic rule name:
     RuniLogicExt "Bend Spoon Rule"
End Sub
Public Sub Fork_Rule()
    'ilogic rule name:
     RuniLogicExt "Bend Fork Rule"
End Sub
Public Sub Knife_Rule()
    'ilogic rule name:
     RuniLogicExt "Bend Knife Rule"
End Sub

Public Sub RuniLogicExt(ByVal RuleName As String)

   Dim oPath As String
   oPath = "\\server\departments\CAD\Inventor\iLogic\"
   
   Dim iLogicAuto As Object
   Dim oDoc As Document
   Set oDoc = ThisApplication.ActiveDocument
   If oDoc Is Nothing Then
      MsgBox "Missing Inventor Document"
      Exit Sub
   End If
   Set iLogicAuto = GetiLogicAddin(ThisApplication)
   If (iLogicAuto Is Nothing) Then
   MsgBox "iLogicAuto Is Nothing"
   Exit Sub
   End If

   iLogicAuto.RunExternalRule oDoc, oPath &amp;amp; RuleName &amp;amp; ".iLogicVb"
End Sub

Function GetiLogicAddin(oApplication As Inventor.Application) As Object
   Set addIns = oApplication.ApplicationAddIns
   Dim addIn As ApplicationAddIn
   On Error GoTo NotFound
   Set addIn = oApplication.ApplicationAddIns.ItemById("{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}")
   If (addIn Is Nothing) Then Exit Function
   addIn.Activate
   Set GetiLogicAddin = addIn.Automation
   Exit Function
NotFound:
End Function&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example result for an assembly file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ribbon.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/564141i76E9DBD7A4EAC67D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ribbon.PNG" alt="Ribbon.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 22:22:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8372435#M82453</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2018-10-31T22:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8373403#M82454</link>
      <description>&lt;P&gt;Thanks Curtis, I will also give this a try and see if I can adapt it to my customizations. Can you shoot me a private message when you have a chance?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 12:11:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8373403#M82454</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2018-11-01T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Ribbon Customization</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8373493#M82455</link>
      <description>&lt;P&gt;Haha, thanks a ton, Curtis. What, no cutlery icons for the macro buttons? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question about this... in this blog post:&amp;nbsp;&lt;A href="https://adndevblog.typepad.com/manufacturing/2016/04/rename-the-user-commands-panel.html" target="_blank"&gt;Rename the "User Commands" panel&lt;/A&gt;, Mr. Nagy says that "programmatically added UI elements are not persisted. So you would have to run your command that adds the extra ribbon panel each time Inventor starts."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it apply to your rule as well? If not, what makes his rule different?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If programmatically-added UI elements ARE persisted, can you tell me how/where they are stored, and is there any way to reset the UI if anything goes wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 12:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-ribbon-customization/m-p/8373493#M82455</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-11-01T12:43:20Z</dc:date>
    </item>
  </channel>
</rss>

