<?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 Ribbon Tab bug in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11586158#M145806</link>
    <description>&lt;P&gt;Hi, i'm having an issue with the ribbon tab.&lt;/P&gt;&lt;P&gt;When i execute this code from an assembly, to unfold all sheetmetal parts, the main assembly ribbon tab turns in a sheetmetal ribbon tab.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub createFlatPattern(doc As PartDocument)
    Dim metaldef As SheetMetalComponentDefinition
    Set metaldef = doc.ComponentDefinition
    If Not metaldef.HasFlatPattern Then
        metaldef.Unfold
        metaldef.FlatPattern.ExitEdit
    End If
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gustavocassel_0-1669750050447.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1145918iB8262013394AC1F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gustavocassel_0-1669750050447.png" alt="gustavocassel_0-1669750050447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, i'm currently in a assembly document and the sheetmetal ribbon tab is active.&lt;/P&gt;&lt;P&gt;I want a way to fix it, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 19:28:45 GMT</pubDate>
    <dc:creator>gustavo.cassel</dc:creator>
    <dc:date>2022-11-29T19:28:45Z</dc:date>
    <item>
      <title>Ribbon Tab bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11586158#M145806</link>
      <description>&lt;P&gt;Hi, i'm having an issue with the ribbon tab.&lt;/P&gt;&lt;P&gt;When i execute this code from an assembly, to unfold all sheetmetal parts, the main assembly ribbon tab turns in a sheetmetal ribbon tab.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub createFlatPattern(doc As PartDocument)
    Dim metaldef As SheetMetalComponentDefinition
    Set metaldef = doc.ComponentDefinition
    If Not metaldef.HasFlatPattern Then
        metaldef.Unfold
        metaldef.FlatPattern.ExitEdit
    End If
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gustavocassel_0-1669750050447.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1145918iB8262013394AC1F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gustavocassel_0-1669750050447.png" alt="gustavocassel_0-1669750050447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, i'm currently in a assembly document and the sheetmetal ribbon tab is active.&lt;/P&gt;&lt;P&gt;I want a way to fix it, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:28:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11586158#M145806</guid>
      <dc:creator>gustavo.cassel</dc:creator>
      <dc:date>2022-11-29T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon Tab bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11586212#M145807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11880306"&gt;@gustavo.cassel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this link to a past discussion/solution to this issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/toolbar-switching-to-sheet-metal-part-when-ilogic-rule-is-run-in/m-p/7424117#M661701" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-forum/toolbar-switching-to-sheet-metal-part-when-ilogic-rule-is-run-in/m-p/7424117#M661701&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;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:58:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11586212#M145807</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2022-11-29T19:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon Tab bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11587924#M145841</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&lt;/P&gt;&lt;P&gt;The method that you show me its to add a view to the part to make it visible and then unfold it. I can't use this method because I have a lot of OnOpenDocument events and it pop-ups message boxes. Making the code to unfold all parts freezes until someone close the messagebox.&lt;/P&gt;&lt;P&gt;I found a way to "refresh" the ribbon when the code finish.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;AssemblyDocument assemblyDocument = (AssemblyDocument)invApp.ActiveDocument;
invApp.CommandManager.ControlDefinitions["AppShowHomeBaseCmd"].Execute2(true); // ( HomeBaseView )
assemblyDocument.Activate();&lt;/LI-CODE&gt;&lt;P&gt;When the code ends, it change to the HomeBaseView and back to the assembly.&lt;/P&gt;&lt;P&gt;Anyway, thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt; for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ribbon-tab-bug/m-p/11587924#M145841</guid>
      <dc:creator>gustavo.cassel</dc:creator>
      <dc:date>2022-11-30T13:37:09Z</dc:date>
    </item>
  </channel>
</rss>

