<?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: Which button is clicked? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5009640#M76871</link>
    <description>&lt;P&gt;No worries glad to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW I&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;did include a manifest in the zip file it is called RibbonExample.addin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 May 2014 13:10:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-03T13:10:22Z</dc:date>
    <item>
      <title>Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5004522#M76866</link>
      <description>&lt;P&gt;The addin I am writing adds a ribbon panel with two buttons (button A and button B) to the "Add-Ins Ribbon".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clicking these buttons will both execute the "Public Function Execute(commandData As Autodesk.Revit.UI.ExternalCommandData, ByRef message As String, elements As Autodesk.Revit.DB.ElementSet) As Autodesk.Revit.UI.Result Implements Autodesk.Revit.UI.IExternalCommand.Execute"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know which button is being clicked (A or B).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I determine this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. In my .addin manifest, I have defined only one "Command", so under the "External Tools", only one command show up (as expected).&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 06:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5004522#M76866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-01T06:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5004986#M76867</link>
      <description>&lt;P&gt;To my knowlege this info isn't passed on by the API. There are ways around it though as discussed in this post from a couple years back: &amp;nbsp;h&lt;SPAN style="line-height: 1.2;"&gt;ttp://forums.autodesk.com/t5/Revit-API/Which-pushbutton-caused-the-ExternalCommand/m-p/3698908&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a reason that you can't just have a separate command for each button?&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 12:03:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5004986#M76867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-01T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5005110#M76868</link>
      <description>&lt;P&gt;Having a separate command for each button is no problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...except that I don't even know how my current buttons are currently "linked" by the &amp;nbsp;".addin manifest" to the "Execute command".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way my addin looks right now: a panel with two buttons on the Addin Ribbon and one command under the "External Tools"...but they are ALL connected to one and the same Execute command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you understand what I am trying to say. Maybe you can show me an example of having multiple commands (linked to different buttons)?&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 13:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5005110#M76868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-01T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5005566#M76869</link>
      <description>&lt;P&gt;I typically create an Addin Application and then have all command buttons created and associated to the commands during the OnStartup method of the addin. &lt;SPAN style="line-height: 1.2;"&gt;I have linked an example visual studio 2010 solution set up for Revit 2014, it's very bare bones but take a look to see how it's done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 15:13:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5005566#M76869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-01T15:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5009118#M76870</link>
      <description>&lt;P&gt;Right! That example makes perfect sense.&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;I was writing all the code in one class, you wrote a class for each button/command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The only thing missing in your example is the ".addin manifest", but I bet I can recreate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a ton for sharing that example!&lt;/P&gt;</description>
      <pubDate>Sat, 03 May 2014 06:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5009118#M76870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-03T06:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5009640#M76871</link>
      <description>&lt;P&gt;No worries glad to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW I&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;did include a manifest in the zip file it is called RibbonExample.addin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 May 2014 13:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5009640#M76871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-03T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5012038#M76872</link>
      <description>&lt;P&gt;Dear Teun Ham,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question has actually been discussed a couple of times in the past, so I added an explanation of it to The Building Coder as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/01/url-and-other-buttons-xyz-points-and-vectors.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/01/url-and-other-buttons-xyz-points-and-vectors.html#2&lt;/A&gt;&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>Mon, 05 May 2014 12:53:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5012038#M76872</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2014-05-05T12:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Which button is clicked?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5013828#M76873</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;No worries glad to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW I&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;did include a manifest in the zip file it is called RibbonExample.addin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Aaah, I missed it completely. I guess I expected it was an ".suo" file (Visual Studio Solution User Option). I will pay better attention to the file extension next time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 05:39:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/which-button-is-clicked/m-p/5013828#M76873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-06T05:39:41Z</dc:date>
    </item>
  </channel>
</rss>

