<?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: Detect other Revit versions open in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11206912#M18861</link>
    <description>Thank you very much!</description>
    <pubDate>Wed, 01 Jun 2022 07:16:03 GMT</pubDate>
    <dc:creator>NonicaTeam</dc:creator>
    <dc:date>2022-06-01T07:16:03Z</dc:date>
    <item>
      <title>Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11195784#M18857</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;Would anyone know a way to detect all the Revit versions open? I mean to know if Revit 2019 and 2020 are open and running when loading an Add-In from Revit 2021 for instance.&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 19:24:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11195784#M18857</guid>
      <dc:creator>NonicaTeam</dc:creator>
      <dc:date>2022-05-26T19:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11196776#M18858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10727074"&gt;@NonicaTeam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for asking this. If I may ask, is there a specific reason would you want to know other open Revit versions apart from the version your are running your add-in. In the meantime, I have asked the Dev team for you. Will let you know of the feedback. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 06:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11196776#M18858</guid>
      <dc:creator>caroline.gitonga</dc:creator>
      <dc:date>2022-05-27T06:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11197204#M18859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10727074"&gt;@NonicaTeam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I got a response regarding this. Turns out this can be achieved by using .NET&amp;nbsp;&lt;STRONG&gt;Process.GetProcesses&lt;/STRONG&gt; Method which returns&amp;nbsp;&lt;SPAN&gt;all the process resources running on the local computer. From the result you can locate whether there is any instance of Revit is running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.getprocesses?redirectedfrom=MSDN&amp;amp;view=net-6.0#System_Diagnostics_Process_GetProcesses" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.getprocesses?redirectedfrom=MSDN&amp;amp;view=net-6.0#System_Diagnostics_Process_GetProcesses&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly, let me know if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 09:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11197204#M18859</guid>
      <dc:creator>caroline.gitonga</dc:creator>
      <dc:date>2022-05-27T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11197362#M18860</link>
      <description>&lt;P&gt;I used to create something similar. I didn't think getting revit version from process info is reliable so I handled it myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First thing to make sure is that your add-in is well installed on every version of revit.&lt;/P&gt;&lt;P&gt;Then you'll need to implement an executable to act as a central service(http, namedpipe, grpc, WCF, whatever). You also need to make sure the service can only have one running instance(use Mutex to achieve this). Or you can simply use a file instead.&lt;/P&gt;&lt;P&gt;Whenever a revit instance starts up, your add-in should try to start the central service and register the current running revit info into that service. And you should unregister it while revit shuts down.&lt;/P&gt;&lt;P&gt;When a new revit instance starts up. You can get a list of running revit info from the central service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this feature to send an .rfa file from a standalone application to the revit instance that user selected.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 11:22:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11197362#M18860</guid>
      <dc:creator>Kennan.Chen</dc:creator>
      <dc:date>2022-05-27T11:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11206912#M18861</link>
      <description>Thank you very much!</description>
      <pubDate>Wed, 01 Jun 2022 07:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11206912#M18861</guid>
      <dc:creator>NonicaTeam</dc:creator>
      <dc:date>2022-06-01T07:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Detect other Revit versions open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11206913#M18862</link>
      <description>Thanks for your help!</description>
      <pubDate>Wed, 01 Jun 2022 07:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detect-other-revit-versions-open/m-p/11206913#M18862</guid>
      <dc:creator>NonicaTeam</dc:creator>
      <dc:date>2022-06-01T07:16:33Z</dc:date>
    </item>
  </channel>
</rss>

