<?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: Hide the StackedItems on a RibbonPanel in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039520#M11390</link>
    <description>&lt;P&gt;The stackageItems is &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt; added in the &lt;STRONG&gt;RibbonPanel&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you select the last item added in &lt;STRONG&gt;Autodesk.Windows.RibbonPanel&lt;/STRONG&gt; after using &lt;STRONG&gt;AddStackedItems&lt;/STRONG&gt; should result in &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt; with the stackageItems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you could hide the whole &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt;, I don't know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 16:54:24 GMT</pubDate>
    <dc:creator>ricaun</dc:creator>
    <dc:date>2023-06-16T16:54:24Z</dc:date>
    <item>
      <title>Hide the StackedItems on a RibbonPanel</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039083#M11388</link>
      <description>&lt;P&gt;Hi, is it possible to hide only the StackedItems created on a RibbonPanel? Been trying to do this for a while now but could not find any workaround.&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="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228678iB1399352A1C718B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So, there is no StackedItems class in the RevitAPI that allows setting the whole stack visibility to false as we do with all the other ribbon "containers". AddStackedItems is only a RibbonPanel function that does not return a custom RevitAPI object, and it only works with 2 or 3 RibbonButtons. Thus trying to change the visibility of the buttons under a stack won`t work and will only render the buttons unavailable (enabled=false?). My sense is that changing visibility of the buttons one by one, conflicts with the rule of having 2 or 3 visible at any given time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried applying all the modifiers under Autodesk.Windows.RibbonItem and Autodesk.Revit.UI.RibbonItem for the buttons in the stack, but with no success.&lt;/P&gt;&lt;P&gt;I would really enjoy finding a solution for this, as creating&amp;nbsp;RevitAPI workarounds has become an undesired full time job, and this is the one that always gets away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039083#M11388</guid>
      <dc:creator>alexander.nistorUW6TB</dc:creator>
      <dc:date>2023-06-16T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the StackedItems on a RibbonPanel</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039518#M11389</link>
      <description>&lt;P&gt;Dear Alexander,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I am not aware of any official support for that functionality in the Revit API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039518#M11389</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-06-16T16:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the StackedItems on a RibbonPanel</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039520#M11390</link>
      <description>&lt;P&gt;The stackageItems is &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt; added in the &lt;STRONG&gt;RibbonPanel&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you select the last item added in &lt;STRONG&gt;Autodesk.Windows.RibbonPanel&lt;/STRONG&gt; after using &lt;STRONG&gt;AddStackedItems&lt;/STRONG&gt; should result in &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt; with the stackageItems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you could hide the whole &lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel&lt;/STRONG&gt;, I don't know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:54:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12039520#M11390</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2023-06-16T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the StackedItems on a RibbonPanel</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12043770#M11391</link>
      <description>&lt;P&gt;Retrieving the last added element as&amp;nbsp;&lt;STRONG&gt;Autodesk.Windows.RibbonRowPanel &lt;/STRONG&gt;works for managing the StackedItems and hiding them.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 11:00:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-the-stackeditems-on-a-ribbonpanel/m-p/12043770#M11391</guid>
      <dc:creator>alexander.nistorUW6TB</dc:creator>
      <dc:date>2023-06-19T11:00:45Z</dc:date>
    </item>
  </channel>
</rss>

