<?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: Ribbon combobox string in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/ribbon-combobox-string/m-p/7393159#M55976</link>
    <description>&lt;P&gt;Dear Wwydock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be pretty simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ADN Revit API labs (and my Xtra labs) include C# and VB projects UiCs and UiVb demonstrating how to create the combo boxes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/ADN-DevTech/RevitTrainingMaterial" target="_blank"&gt;https://github.com/ADN-DevTech/RevitTrainingMaterial&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way: Prompted by my look at them for your question, I migrated the latter to Revit 2018, while I was at it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the lines 395 to 452 in 1_Ribbon.cs, defining the methods AddComboBox and comboBx_CurrentChanged, or the corresponding one in the VB version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/1_Ribbon.cs#L395-L452" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/1_Ribbon.cs#L395-L452&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The comboBx_CurrentChanged event handler is notified and called when the combo box value changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Store the updated value somewhere and make it available via an externally accessible method or property on your class and you will be all set and ready to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 07:31:59 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-09-20T07:31:59Z</dc:date>
    <item>
      <title>Ribbon combobox string</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ribbon-combobox-string/m-p/7392732#M55975</link>
      <description>I have a combobox located on my Ribbon. I would like to retrieve the selected value as a string to use in an external command. I set the value as a public string for the application but I can’t access it outside of it. Is there something special that needs to happen for this to work?</description>
      <pubDate>Wed, 20 Sep 2017 02:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ribbon-combobox-string/m-p/7392732#M55975</guid>
      <dc:creator>will.wydock</dc:creator>
      <dc:date>2017-09-20T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon combobox string</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ribbon-combobox-string/m-p/7393159#M55976</link>
      <description>&lt;P&gt;Dear Wwydock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be pretty simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ADN Revit API labs (and my Xtra labs) include C# and VB projects UiCs and UiVb demonstrating how to create the combo boxes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/ADN-DevTech/RevitTrainingMaterial" target="_blank"&gt;https://github.com/ADN-DevTech/RevitTrainingMaterial&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way: Prompted by my look at them for your question, I migrated the latter to Revit 2018, while I was at it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the lines 395 to 452 in 1_Ribbon.cs, defining the methods AddComboBox and comboBx_CurrentChanged, or the corresponding one in the VB version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/1_Ribbon.cs#L395-L452" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/1_Ribbon.cs#L395-L452&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The comboBx_CurrentChanged event handler is notified and called when the combo box value changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Store the updated value somewhere and make it available via an externally accessible method or property on your class and you will be all set and ready to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:31:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ribbon-combobox-string/m-p/7393159#M55976</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-09-20T07:31:59Z</dc:date>
    </item>
  </channel>
</rss>

