<?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: RevitAddInUtility - RevitProduct - InstallPath missing in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9793836#M31287</link>
    <description>&lt;P&gt;After even more digging on a customers computer, I tried to reinstall Revit hoping to solve the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did the trick, so it seems like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;&amp;nbsp;was totaly correct in pointing out that the path wasn't correct&amp;nbsp;&lt;BR /&gt;written to registry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem, visually, was that the path was written to the registry but maybe there were someting wrong with the part that got the path through the installed Revit products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer I tried this things on, had installed versjon: 21.1.1.109, installed through the web installer on 02.09.20.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When reinstalling he got 21.1.11.27 installed, using the webistaller on 07.10.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be solved in the installer, but there might be other cases like this, so it might be usefull to post something about it ,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp; ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this code to get the product;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static RevitProduct FindRevitProduct(Guid productCode)
{
  string substring = productCode.ToString().Substring(0, 18);
  List&amp;lt;RevitProduct&amp;gt; prods = 
  RevitProductUtility.GetAllInstalledRevitProducts();
           
  if (prods == null || prods.Count &amp;lt;= 0) return null;
  return (from prod in prods let substringThisProd = 
  prod.ProductCode.ToString().Substring(0, 18) where substring == 
  substringThisProd select prod).FirstOrDefault();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this returns the Revit2021 product, as excpected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I aske the returned RevitProduct about it's Installpath:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var installPath = OneRevitProduct.InstallLocation; 

//the result of this call is: 

"/Revit 2021"&lt;/LI-CODE&gt;&lt;P&gt;This produces the result as shown, wich is not the excpected path, and causes my problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 12:47:32 GMT</pubDate>
    <dc:creator>daniel</dc:creator>
    <dc:date>2020-10-09T12:47:32Z</dc:date>
    <item>
      <title>RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788569#M31284</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have startet do encounter some troubles with the revit addin utility on some of my users machines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They don't get the installed path from RevitProduct (part of RevitAddinUtilty assembly)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have there been any updates on this reacently ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a loader program, to load my addin, and in this loader i query for the installed path of Revit produducts installed on the machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This list is now reporting "/Revit 2021" not the full path..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 09:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788569#M31284</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2020-10-07T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788708#M31285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there is a problem with the web installer since it doesn't write the product GUID in the registry.&lt;/P&gt;
&lt;P&gt;No registry key -&amp;gt; no Revit installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 10:51:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788708#M31285</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2020-10-07T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788721#M31286</link>
      <description>&lt;P&gt;hm...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have thougth of that my self..&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i searched the registry for the installGuid&amp;nbsp; on one of the machines, it did return&amp;nbsp;&lt;/P&gt;&lt;P&gt;the product, and in the register the install path was written there..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The case is that it only occures on some machines, but not all, and I have tried the latest installer from Autodesk, and then it worked... maybe they have updated it the last couple of weeks ? or maybe in connection with updating..&amp;nbsp;&lt;/P&gt;&lt;P&gt;All these customers do report problem after latest update of Revit 2021&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 10:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9788721#M31286</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2020-10-07T10:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9793836#M31287</link>
      <description>&lt;P&gt;After even more digging on a customers computer, I tried to reinstall Revit hoping to solve the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did the trick, so it seems like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;&amp;nbsp;was totaly correct in pointing out that the path wasn't correct&amp;nbsp;&lt;BR /&gt;written to registry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem, visually, was that the path was written to the registry but maybe there were someting wrong with the part that got the path through the installed Revit products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer I tried this things on, had installed versjon: 21.1.1.109, installed through the web installer on 02.09.20.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When reinstalling he got 21.1.11.27 installed, using the webistaller on 07.10.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be solved in the installer, but there might be other cases like this, so it might be usefull to post something about it ,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp; ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this code to get the product;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static RevitProduct FindRevitProduct(Guid productCode)
{
  string substring = productCode.ToString().Substring(0, 18);
  List&amp;lt;RevitProduct&amp;gt; prods = 
  RevitProductUtility.GetAllInstalledRevitProducts();
           
  if (prods == null || prods.Count &amp;lt;= 0) return null;
  return (from prod in prods let substringThisProd = 
  prod.ProductCode.ToString().Substring(0, 18) where substring == 
  substringThisProd select prod).FirstOrDefault();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this returns the Revit2021 product, as excpected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I aske the returned RevitProduct about it's Installpath:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var installPath = OneRevitProduct.InstallLocation; 

//the result of this call is: 

"/Revit 2021"&lt;/LI-CODE&gt;&lt;P&gt;This produces the result as shown, wich is not the excpected path, and causes my problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 12:47:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9793836#M31287</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2020-10-09T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9794011#M31288</link>
      <description>&lt;P&gt;Dear Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your observations and the suggestion to post something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you clarify what exactly you think might be worth while posting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, the description so far is still a bit confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the most helpful thing to post would be a list of clear statements, such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There is a new problem with ??? in Revit version ???.&lt;/LI&gt;
&lt;LI&gt;You observe it like this: ???&lt;/LI&gt;
&lt;LI&gt;It can be easily solved like this: ???&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you clarify and restructure your statements in some kind of similar way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 14:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9794011#M31288</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-10-09T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: RevitAddInUtility - RevitProduct - InstallPath missing</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9810186#M31289</link>
      <description>&lt;P&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In some versions of Revit I have encountered problems with the Revit Addin-utility.&lt;/P&gt;&lt;P&gt;(known versions: 21.1.10.26, and 21.1.1.109)&lt;/P&gt;&lt;P&gt;The result of this call, gives Revit products, but the returned products don't report the full installpath of the specified product.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;List&amp;lt;RevitProduct&amp;gt; prods = 
  Autodesk.RevitAddIns.RevitProductUtility.GetAllInstalledRevitProducts();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The excpected result for a Revit product parameter :&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;RevitProduct.InstallLocation {get;}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should be : (ex)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Program Files\Autodesk\Revit 2021"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and when this error occures it is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"\Revit 2021"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I my case this leads to the issue that I cant start correct Revit from my startup program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assumed source of error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It looks like it has been a bug in the update, or webinstaller for some time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The solution at the moment is to reinstall Revit 2021, using the latest webinstaller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it is a bit clearer, I have got 5-6 customers with this issue now, and I guess it more to come..&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revitaddinutility-revitproduct-installpath-missing/m-p/9810186#M31289</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2020-10-19T08:32:31Z</dc:date>
    </item>
  </channel>
</rss>

