<?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: Split Button problem in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8955341#M40617</link>
    <description>&lt;P&gt;&lt;SPAN&gt;PulldownButton&amp;nbsp;is not what I need. I need a top button and a pull down menu under. How can Revit achieve this behavior? Do you guys have special control in your toolkit not accessible&amp;nbsp;to other developers?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 12:22:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-08T12:22:27Z</dc:date>
    <item>
      <title>Split Button problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8951603#M40615</link>
      <description>&lt;P&gt;I am trying to make a split button exactly like in Revit.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For Exemple Slab in "Structure"&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="2019-08-06_15h52_35.png" style="width: 190px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/664557i2C18D63FABA1B2BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-08-06_15h52_35.png" alt="2019-08-06_15h52_35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see the label is different from the first choice.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I am creating my own splitButton with this code (I create from a custom model)&lt;/P&gt;&lt;PRE&gt;var splitButtonData = new SplitButtonData(dropDownButton.Name, dropDownButton.Name);
var splitButton = ribbonPanel.AddItem(splitButtonData) as SplitButton;
if (splitButton != null)
	splitButton.IsSynchronizedWithCurrentItem = false;

foreach (var pushButtonContent in dropDownButton)
{
	var button = new PushButtonData(
		pushButtonContent.CommandType.Name,
		pushButtonContent.Text,
		pushButtonContent.CommandType.Assembly.Location,
		pushButtonContent.CommandType.FullName);

		if (pushButtonContent.LargeImage != null)		
			button.LargeImage = BitmapToImageSourceConverter.Convert(pushButtonContent.LargeImage);
											
		if (!string.IsNullOrEmpty(pushButtonContent.AvailabilityClassName))
			button.AvailabilityClassName = pushButtonContent.AvailabilityClassName;

	splitButton?.AddPushButton(button);
}&lt;/PRE&gt;&lt;P&gt;Basically,&amp;nbsp;dropDownButton.Name is "Form Deck", but&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this&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="2019-08-06_15h57_19.png" style="width: 132px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/664561i0EA3510203AE20A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-08-06_15h57_19.png" alt="2019-08-06_15h57_19.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want the top button and description to be linked to first item.&lt;BR /&gt;&lt;BR /&gt;Also if possible I would like the top button to be independent and have it own command handler based on a algorithm to chose the best option base on the selection in Revit.&lt;BR /&gt;&lt;BR /&gt;Thank you for helping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 20:02:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8951603#M40615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-06T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split Button problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8954626#M40616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Ribbon SplitButton is designed to show the text and image of the current button, as what says in SplitButtonData: " This text will be displayed on the button if drop-down is empty. If sub-items are added,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;then the split button will display the current PushButton's text.". You can try PulldownButton instead if possible.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 05:10:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8954626#M40616</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2019-08-08T05:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split Button problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8955341#M40617</link>
      <description>&lt;P&gt;&lt;SPAN&gt;PulldownButton&amp;nbsp;is not what I need. I need a top button and a pull down menu under. How can Revit achieve this behavior? Do you guys have special control in your toolkit not accessible&amp;nbsp;to other developers?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8955341#M40617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Split Button problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8961648#M40618</link>
      <description>&lt;P&gt;I answered myself. If anyone is wondering how to do&amp;nbsp; a split button like in Revit, you must use&amp;nbsp;Autodesk.Windows.RibbonSplitButton instead.&lt;BR /&gt;&lt;BR /&gt;Then use&lt;/P&gt;&lt;P&gt;ShowText = true;&lt;BR /&gt;IsSplit = true;&lt;BR /&gt;Size = Autodesk.Windows.RibbonItemSize.Large;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The binding of the command is different, but you guys can handle this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that help anyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 18:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/8961648#M40618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-12T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Split Button problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/11129094#M40619</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you add the lines of code please?&lt;/P&gt;&lt;P&gt;Thanks!.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 10:26:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/split-button-problem/m-p/11129094#M40619</guid>
      <dc:creator>ekouassi</dc:creator>
      <dc:date>2022-04-26T10:26:03Z</dc:date>
    </item>
  </channel>
</rss>

