<?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: Adding a Command to Customize-&amp;gt;Ribbon in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707798#M166145</link>
    <description>&lt;P&gt;Please use standard Inventor API reference and samples instead of ChatGPT.&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-F473AB33-3A7A-4419-B903-14B61A745080" target="_blank"&gt;link&lt;/A&gt; how to customize ribbon in Inventor.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Apr 2024 16:43:15 GMT</pubDate>
    <dc:creator>Michael.Navara</dc:creator>
    <dc:date>2024-04-14T16:43:15Z</dc:date>
    <item>
      <title>Adding a Command to Customize-&gt;Ribbon</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707519#M166143</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How do I add a button here&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 823px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349549iAF0FB8ED94224F9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to ChatGPT this code should work but "CustomizationManager" is not recognized&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Private Sub AddToCustomization(btnDef As ButtonDefinition)
    ' Get the customization manager.
    Dim customizationMgr As CustomizationManager = g_inventorApplication.CommandManager.CustomizationManager

    ' Show the Customize dialog to allow users to customize the ribbon.
    customizationMgr.EditCustomize()

    ' Note: The EditCustomize() method will open the Customize dialog, allowing users to add the button to any ribbon or toolbar they choose.
    ' Users can drag and drop the button from the "Commands" list to the desired ribbon tab or panel.
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But only thing i managed to do is this sample that is hardcoded&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349551iAD759C44DEBE3D41/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;"User interface definition"
        ' Sub where the user-interface creation is done.  This is called when
        ' the add-in loaded and also if the user interface is reset.
        Private Sub AddToUserInterface()
            ' This is where you'll add code to add buttons to the ribbon.

            '** Sample to illustrate creating a button on a new panel of the Tools tab of the Part ribbon.

            '' Get the part ribbon.
            Dim partRibbon As Ribbon = g_inventorApplication.UserInterfaceManager.Ribbons.Item("Part")

            '' Get the "Tools" tab.
            Dim toolsTab As RibbonTab = partRibbon.RibbonTabs.Item("id_TabTools")

            '' Create a new panel.
            Dim customPanel As RibbonPanel = toolsTab.RibbonPanels.Add("Sample", "MysSample", AddInClientID)

            '' Add a button.
            customPanel.CommandControls.AddButton(m_sampleButton)
        End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 11:53:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707519#M166143</guid>
      <dc:creator>antunbrnic222</dc:creator>
      <dc:date>2024-04-14T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Command to Customize-&gt;Ribbon</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707798#M166145</link>
      <description>&lt;P&gt;Please use standard Inventor API reference and samples instead of ChatGPT.&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-F473AB33-3A7A-4419-B903-14B61A745080" target="_blank"&gt;link&lt;/A&gt; how to customize ribbon in Inventor.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 16:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707798#M166145</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-04-14T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Command to Customize-&gt;Ribbon</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707946#M166147</link>
      <description>&lt;P&gt;Thanks for the reply, I did follow it but this is not what I need, this still hardcodes it to some "TAB".&lt;/P&gt;&lt;P&gt;I want it as a button in Customize-&amp;gt;Ribbon so I can later add it where I want it.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 19:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707946#M166147</guid>
      <dc:creator>antunbrnic222</dc:creator>
      <dc:date>2024-04-14T19:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Command to Customize-&gt;Ribbon</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707953#M166148</link>
      <description>&lt;P&gt;Hi try here&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.hjalte.nl/inventor-addins/31-button-constructor" target="_blank"&gt;http://www.hjalte.nl/inventor-addins/31-button-constructor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 19:27:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707953#M166148</guid>
      <dc:creator>kresh.bell</dc:creator>
      <dc:date>2024-04-14T19:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Command to Customize-&gt;Ribbon</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707961#M166149</link>
      <description>&lt;P&gt;I managed to get it to work, the problem was that I didn't specify images for button and that is the reason why i wasn't in customize tab &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@4FD00EB5A135FD0F3D3FEE04D32CAC5C/emoticons/1f625.png" alt=":sad_but_relieved_face:" title=":sad_but_relieved_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;m_sampleButton = controlDefs.AddButtonDefinition("Sastavnica", "Sastavnica", CommandTypesEnum.kShapeEditCmdType, AddInClientID,,, smallIcon, largeIcon)&lt;/LI-CODE&gt;&lt;P&gt;smallIcon,largeIcon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 19:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-a-command-to-customize-gt-ribbon/m-p/12707961#M166149</guid>
      <dc:creator>antunbrnic222</dc:creator>
      <dc:date>2024-04-14T19:33:07Z</dc:date>
    </item>
  </channel>
</rss>

