<?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 R2 vs. UR4 in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5382029#M75059</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I see that R2 provides some new methods which UR4 doesn't have.&lt;BR /&gt;&lt;BR /&gt;So, if we want to write add-ins for Revit 2015 in general, do we have to avoid to use these methods ?&lt;BR /&gt;Additionally, if we want to use these methods, do we have to evaluate whether installed Revit 2015 is either R2 or UR4 ?&lt;BR /&gt;&lt;BR /&gt;I use product GUIDs to determine if Revit is installed before trying to install my add-ins:&lt;BR /&gt;&lt;A target="_blank" href="http://thebuildingcoder.typepad.com/blog/2013/04/perpetual-guid-algorithm-and-revit-2014-product-guids.html"&gt;http://thebuildingcoder.typepad.com/blog/2013/04/perpetual-guid-algorithm-and-revit-2014-product-guids.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But how to see which sort of Service Pack has been installed ?&lt;BR /&gt;&lt;BR /&gt;If providing R2 addins, it would be necessary to know that because they may create errors when running in UR4.&lt;BR /&gt;&lt;BR /&gt;I also disagree in tagging this forum posting as solved:&lt;BR /&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/revit-api/worksets/td-p/5360275"&gt;http://forums.autodesk.com/t5/revit-api/worksets/td-p/5360275&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The solution is using an R2 method, so this isn't a solution &lt;EM&gt;in general&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2014 10:20:04 GMT</pubDate>
    <dc:creator>Revitalizer</dc:creator>
    <dc:date>2014-11-05T10:20:04Z</dc:date>
    <item>
      <title>R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5382029#M75059</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I see that R2 provides some new methods which UR4 doesn't have.&lt;BR /&gt;&lt;BR /&gt;So, if we want to write add-ins for Revit 2015 in general, do we have to avoid to use these methods ?&lt;BR /&gt;Additionally, if we want to use these methods, do we have to evaluate whether installed Revit 2015 is either R2 or UR4 ?&lt;BR /&gt;&lt;BR /&gt;I use product GUIDs to determine if Revit is installed before trying to install my add-ins:&lt;BR /&gt;&lt;A target="_blank" href="http://thebuildingcoder.typepad.com/blog/2013/04/perpetual-guid-algorithm-and-revit-2014-product-guids.html"&gt;http://thebuildingcoder.typepad.com/blog/2013/04/perpetual-guid-algorithm-and-revit-2014-product-guids.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But how to see which sort of Service Pack has been installed ?&lt;BR /&gt;&lt;BR /&gt;If providing R2 addins, it would be necessary to know that because they may create errors when running in UR4.&lt;BR /&gt;&lt;BR /&gt;I also disagree in tagging this forum posting as solved:&lt;BR /&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/revit-api/worksets/td-p/5360275"&gt;http://forums.autodesk.com/t5/revit-api/worksets/td-p/5360275&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The solution is using an R2 method, so this isn't a solution &lt;EM&gt;in general&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 10:20:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5382029#M75059</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2014-11-05T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5386485#M75060</link>
      <description>&lt;P&gt;The R2 is a subscription benefit that include new features. The UR4 is an update with no changes on APIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to use R2 features, then you must make sure your customer(s) will have access to it and you can check using the version number.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:54:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5386485#M75060</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-11-06T17:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5386495#M75061</link>
      <description>&lt;P&gt;And the suggestion on the other post is because this new feature is available... indeed is specific, but address your issue. Am I missing anything?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5386495#M75061</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-11-06T17:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5387969#M75062</link>
      <description>&lt;P&gt;Dear Augusto Goncalves,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ah, yes, I see that there is no reason to check version &lt;EM&gt;at installation time&lt;/EM&gt; since we can avoid invoking unsupported methods by checking VersionName Property before, &lt;EM&gt;at runtime&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I think you meant Version&lt;EM&gt;Build&lt;/EM&gt;; its value is "20140606_1530(x64)" while Version&lt;EM&gt;Name&lt;/EM&gt; just is "Autodesk Revit 2015", on my machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, no need to know special registry keys to evaluate the ServicePack version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:13:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5387969#M75062</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2014-11-07T08:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5388037#M75063</link>
      <description>&lt;P&gt;Dear Augusto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for pointing that out.&lt;/P&gt;&lt;P&gt;I agree that the mentioned topic is &lt;EM&gt;solved&lt;/EM&gt;, &lt;EM&gt;anyway&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some time ago, I have complained about tagging a thread as &lt;EM&gt;solved&lt;/EM&gt; even if there has no solution been found at all:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/revit-api/how-to-get-an-image-file-path-for-a-material/m-p/3784803/highlight/true#M3664"&gt;http://forums.autodesk.com/t5/revit-api/how-to-get-an-image-file-path-for-a-material/m-p/3784803/highlight/true#M3664&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To sum it up:&lt;/P&gt;&lt;P&gt;What about these tags for ending a thread:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finished&lt;/P&gt;&lt;P&gt;Solved in part&lt;/P&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, think of people who pick up old threads.&lt;/P&gt;&lt;P&gt;It could be that there is a Revit 2014 solution for a question asked for Revit 2011, so there would be a conflict because the original problem stays unsolved while newer Revit APIs can solve it by now.&lt;/P&gt;&lt;P&gt;That would be a candidate for "Solved in part", too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:49:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5388037#M75063</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2014-11-07T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5388581#M75064</link>
      <description>&lt;P&gt;Interesting suggestions, I'll escalate them.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 13:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5388581#M75064</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-11-07T13:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5396773#M75065</link>
      <description>&lt;P&gt;You may be interested in the Application.IsSubscriptionUpdate property. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed this by chance the other day when looking at the auto-complete suggestions on the Application class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This property isn't present in the 2015 API docs that I have, so presumably it was introduced in R2. &amp;nbsp;Seeing as this property isn't present in the standard 2015 installation (unless it was introduced in UR4), you'll&amp;nbsp;probably get a MissingPropertyException if you try to access it from a non-subscription installation of Revit. &amp;nbsp;You could wrap the call in a try/catch block to determine whether the installation has R2 or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This isn't the best place to ask, but does anyone know if there are updated API docs for 2015 R2? I can't seem to find them anywhere&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:51:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5396773#M75065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-11T22:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5397507#M75066</link>
      <description>&lt;P&gt;Dear cshha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I see there is such a property in R2, so there is no need for comparing build numbers;&lt;/P&gt;&lt;P&gt;using the build number approach, I would need to know the exact list of those numbers to do so, additionally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, your suggestion is much clearer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that it is not necessary to use the try/catch block since we can access the property by reflection, browsing the PropertyInfos of Application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nonetheless, thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5397507#M75066</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2014-11-12T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5439929#M75067</link>
      <description>&lt;P&gt;Hi, What is the best technique for trapping cases where a particular method/property is not available. For example, I do not wish to release two&amp;nbsp;2015 applications, 1 for R2, 1 for the rest. So if I develop for R2 in order to use the more advanced features and compile without error, what is the best way to flag the function as being unavailable if run in 2015 standard. Simply look for a particular exception? And of course, if you develop for the higher version, it will be impossible to keep track of what may or may not be in the lower version. Therefore it is not practical to wrap something in (if not R2 give message "sorry"). Will the R2 dll&amp;nbsp;load and only error when that function is called, or will it error on load? Thanks for any suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:30:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5439929#M75067</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2014-12-11T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: R2 vs. UR4</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5440268#M75068</link>
      <description>&lt;P&gt;If you try to run a method that is not available, the .NET engine will throw a 'Method not found' exception. You can also check the Revit built number to inform the user before try to run the code.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:40:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/r2-vs-ur4/m-p/5440268#M75068</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2014-12-11T15:40:34Z</dc:date>
    </item>
  </channel>
</rss>

