<?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: Get Ribbon Button Click Event in API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819522#M60869</link>
    <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you have provided which will&amp;nbsp;work only for the items you are going to add to the RibbonPanels into Revit. But the query was different. I have to get the click events for the items which are available in Revit by Default. Please refer the attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 14:28:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-20T14:28:38Z</dc:date>
    <item>
      <title>Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6813230#M60863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find the ribbon button click event in revit API. Kindly help me to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:46:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6813230#M60863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6813462#M60864</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;This previous post should give you what you need:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/recording-executed-commands/m-p/6675159/highlight/true#M19334" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api-forum/recording-executed-commands/m-p/6675159/highlight/true#M19334&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6813462#M60864</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-18T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819376#M60865</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have not found the event "&lt;STRONG&gt;ItemExecuted&lt;/STRONG&gt;" which was mentioned in that link for RibbonItem or RibbonButton classes which was available in Autodesk.Windows dll. Whatever we are adding to existing panels for those items we can get the click event. But for the items which are available default in Revit for those i am not able to find the click event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819376#M60865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819402#M60866</link>
      <description>&lt;P&gt;Hi Vinoth,&lt;/P&gt;
&lt;P&gt;Here's a snippet to get you started. I actually use the&amp;nbsp;UIElementActivated event:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Imports Autodesk.Revit.Attributes
Imports Autodesk.Revit
Imports adWin = Autodesk.Windows
&amp;lt;Transaction(TransactionMode.Manual)&amp;gt; _
&amp;lt;Regeneration(RegenerationOption.Manual)&amp;gt; _
&amp;lt;Journaling(JournalingMode.UsingCommandData)&amp;gt; _
&amp;lt;DisplayName("Application Name")&amp;gt; _
&amp;lt;Description("Application Description")&amp;gt; _
Public Class YourApp
    Implements UI.IExternalApplication
  Public Function OnStartup(ByVal a As UI.UIControlledApplication) As UI.Result Implements UI.IExternalApplication.OnStartup
                  'event handler
            AddHandler adWin.ComponentManager.UIElementActivated, AddressOf ComponentManager_UIElementActivated
      Return UI.Result.Succeeded
  End Function
  Public Function OnShutdown(ByVal a As UI.UIControlledApplication) As UI.Result Implements UI.IExternalApplication.OnShutdown
                  RemoveHandler adWin.ComponentManager.UIElementActivated, AddressOf ComponentManager_UIElementActivated
    Return UI.Result.Succeeded
  End Function
  Private Sub ComponentManager_UIElementActivated(ByVal sender As Object, ByVal e As Autodesk.Windows.UIElementActivatedEventArgs)
         'do your thing with the e
  end sub
end class&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know how you get on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:54:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819402#M60866</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-20T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819476#M60867</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you have provided does not work. Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819476#M60867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819495#M60868</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;'Does not work'? You're going to have to explain better than that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can assure you that it does work. I use it myself.&lt;/P&gt;
&lt;P&gt;Explore the e object in the ComponentManager_UIElementActivated function.&lt;/P&gt;
&lt;P&gt;Put a break mark in there and browse the objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:21:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819495#M60868</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-20T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819522#M60869</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you have provided which will&amp;nbsp;work only for the items you are going to add to the RibbonPanels into Revit. But the query was different. I have to get the click events for the items which are available in Revit by Default. Please refer the attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819522#M60869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819540#M60870</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;
&lt;P&gt;You are wrong. I use it to trap all ribbon item clicks.&lt;/P&gt;
&lt;P&gt;Such as this:&lt;/P&gt;
&lt;P&gt;Modify &amp;gt; Modify &amp;gt; Delete (Modify tab, Modify Panel, Delete item)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to investigate further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:34:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6819540#M60870</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-20T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6826713#M60871</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies. Your are not wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinoth Kumar.R&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/6826713#M60871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T11:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9563128#M60872</link>
      <description>&lt;P&gt;Matt (&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/98018"&gt;@matthew_taylor&lt;/a&gt;)&amp;nbsp;, thank you for your example on monitoring UI Click Events!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a button id like to monitor which does not trigger the event. It is the Settings button in the MEP Fabrication Parts Dockable Dialog (Screenshot below). Have you found this to be true also? Ive examined the e object and looked at other members of&amp;nbsp; 'Autodesk.Windows' but nothing pops out to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MonitorUiClick.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/780389i82794D22451D3F04/image-size/large?v=v2&amp;amp;px=999" role="button" title="MonitorUiClick.png" alt="MonitorUiClick.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 15:48:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9563128#M60872</guid>
      <dc:creator>TheRealChrisHildebran</dc:creator>
      <dc:date>2020-06-05T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9566037#M60873</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2814832"&gt;@TheRealChrisHildebran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This method will not work for what you are trying to do.&lt;/P&gt;&lt;P&gt;I would suggest exploring the posts under this category:&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless, I would suggest you don't even need to do this using dialogs. Check out the FabricationConfuguration object. Not something I've had dealings with, but it may have what you need.&amp;nbsp;&lt;A href="https://www.revitapidocs.com/2020/119c73a2-a113-aa8c-e032-e80d22e31ac8.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2020/119c73a2-a113-aa8c-e032-e80d22e31ac8.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless of your decided method, I suggest that any issues you come up against should be in their own forum post. That way you'll have multiple people looking at it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 03:54:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9566037#M60873</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-06-08T03:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9566991#M60874</link>
      <description>&lt;P&gt;Thanks for the feedback Matt!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I definitely do look at Jeremy's gold mine and refer to the Revit API docs daily and incidentally. They are both tabs that open immediately upon opening my browser.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp;In this case there is no event in the Revit API Class you linked to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally i would have opened a new post but i think my question just extended the original post a bit keeping them connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply wanted to see if you had any experience with your solution to the OP working on non-Ribbon items.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:48:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9566991#M60874</guid>
      <dc:creator>TheRealChrisHildebran</dc:creator>
      <dc:date>2020-06-08T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ribbon Button Click Event in API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9567861#M60875</link>
      <description>Ah, I have seen your other post which spells out your purpose. I'll reply there.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2020 20:21:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ribbon-button-click-event-in-api/m-p/9567861#M60875</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-06-08T20:21:33Z</dc:date>
    </item>
  </channel>
</rss>

