<?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 / Retrieve  Plug-in function run event in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431390#M25119</link>
    <description>&lt;P&gt;Thanks a lot, will do required r&amp;amp;d and if able to solve issue, will update it for wider audience&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 07:05:57 GMT</pubDate>
    <dc:creator>MehtaRajesh</dc:creator>
    <dc:date>2021-06-30T07:05:57Z</dc:date>
    <item>
      <title>Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10426526#M25114</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello all,&lt;BR /&gt;I am able to track File Save Event as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;this.uidoc = commandData.Application.ActiveUIDocument;&lt;BR /&gt;Autodesk.Revit.ApplicationServices.Application revitApplication = commandData.Application.Application; Autodesk.Revit.ApplicationServices.Application app; Autodesk.Revit.UI.UIApplication m_app; m_app = commandData.Application;&lt;BR /&gt;app = m_app.Application;&lt;BR /&gt;commandData.Application.ActiveUIDocument.Document.DocumentSaving += Document_DocumentSaving; MessageBox.Show("We are in process", "TITLE", MessageBoxButtons.OK, MessageBoxIcon.Warning);&lt;BR /&gt;return Autodesk.Revit.UI.Result.Succeeded;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private void Document_DocumentSaving(object sender, Autodesk.Revit.DB.Events.DocumentSavingEventArgs e)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show("We are at Save event", "TITLE", MessageBoxButtons.OK, MessageBoxIcon.Warning);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My Requirement is to track the external plug-in button press event, (If say One external plug-in loaded in ribbon, and if user presses one of the button, function need to notify) and prior OR after running that function i need to run my own function.&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind support.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raj&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 15:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10426526#M25114</guid>
      <dc:creator>MehtaRajesh</dc:creator>
      <dc:date>2021-06-28T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10430999#M25115</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Any update on my requirement from Revit API developer specialists OR from Autodesk Product expert ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 03:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10430999#M25115</guid>
      <dc:creator>MehtaRajesh</dc:creator>
      <dc:date>2021-06-30T03:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431304#M25116</link>
      <description>&lt;P&gt;If you just want to keep a log of when your add-in code is executed, the easiest solution is probably to implement a simple logging functionality in the add-in code itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431304#M25116</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-06-30T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431348#M25117</link>
      <description>&lt;P&gt;Thanks for your reply,&lt;BR /&gt;&lt;BR /&gt;But I need to track when particular button pressed from third party plug-in (e.g. UNIFI), for which i do not have control (Source-code) hence i can not do any changes in that plug-in.&lt;BR /&gt;&lt;BR /&gt;Is there any reactor kind of mechanism using which i can notify button pressed ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your further help / support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:42:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431348#M25117</guid>
      <dc:creator>MehtaRajesh</dc:creator>
      <dc:date>2021-06-30T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431365#M25118</link>
      <description>&lt;P&gt;I do not believe the Revit API provides a dedicated method or event for this right out of the box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of indirect solutions that you can use, though:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Parse the journal file --&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/journal" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/journal&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Detect Command Launch via&amp;nbsp;DocumentChanged event --&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/01/torsion-tools-command-event-and-info-in-da4r.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2020/01/torsion-tools-command-event-and-info-in-da4r.html#3&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Subscribe to a button click event provided by the .NET UI Automation library --&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/automation" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/automation&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are certainly other further possibilities to achieve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431365#M25118</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-06-30T06:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get / Retrieve  Plug-in function run event</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431390#M25119</link>
      <description>&lt;P&gt;Thanks a lot, will do required r&amp;amp;d and if able to solve issue, will update it for wider audience&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 07:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-retrieve-plug-in-function-run-event/m-p/10431390#M25119</guid>
      <dc:creator>MehtaRajesh</dc:creator>
      <dc:date>2021-06-30T07:05:57Z</dc:date>
    </item>
  </channel>
</rss>

