<?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: How to get the REVIT execution path programtically? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/10981049#M39941</link>
    <description>&lt;PRE&gt;Process.GetCurrentProcess().MainModule.FileName&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Mar 2022 06:46:27 GMT</pubDate>
    <dc:creator>peter_hirn</dc:creator>
    <dc:date>2022-03-03T06:46:27Z</dc:date>
    <item>
      <title>How to get the REVIT execution path programtically?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9013429#M39938</link>
      <description>&lt;P&gt;I am using C# to develop addin for Revit 2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Revit is installed under a directory. e.g.&amp;nbsp; &amp;nbsp;D:\REVIT\Revit 2016\Revit.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get the path using C#?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 08:40:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9013429#M39938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T08:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the REVIT execution path programtically?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9013660#M39939</link>
      <description>&lt;P&gt;Normally, you have no need whatsoever to determine the path of Revit.exe to install and run your add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please work through the getting started material first of all, before asking any other questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#2" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will explain all you need to know about the fundamentals, add-in architecture, installation and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really need to know the location of Revit.exe for some other reason, you can easily use the basic .NET operating system functionality, e.g., to search your file system for Revit.exe itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please be aware of the Revit API installation utility named&amp;nbsp;RevitAddInUtility that also provides this kind of functionality:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2010/04/revitaddinutility.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2010/04/revitaddinutility.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2010/05/revitaddinutility-for-32-and-64-bit-systems.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2010/05/revitaddinutility-for-32-and-64-bit-systems.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:02:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9013660#M39939</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-09T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the REVIT execution path programtically?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9026221#M39940</link>
      <description>&lt;P&gt;&lt;U&gt;The registry holds this information:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Revit\2020\REVIT-05:0809&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InstallationLocation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C:\Program Files\Autodesk\Revit 2020\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InstallationType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;standalone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Language&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;English&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProductName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Autodesk Revit 2020&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SerialNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx-xxxxxxxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2020 (20.0.0.377)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are lots of examples on line (including from Jeremy) to read the registry.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 23:23:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/9026221#M39940</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2019-09-15T23:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the REVIT execution path programtically?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/10981049#M39941</link>
      <description>&lt;PRE&gt;Process.GetCurrentProcess().MainModule.FileName&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-revit-execution-path-programtically/m-p/10981049#M39941</guid>
      <dc:creator>peter_hirn</dc:creator>
      <dc:date>2022-03-03T06:46:27Z</dc:date>
    </item>
  </channel>
</rss>

