<?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: Are UniqueIDs guaranteed to be the same after upgrading in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7198302#M57382</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your appreciation and clarification.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, I see and understand what you are after.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You address&amp;nbsp;an interesting aspect&amp;nbsp;here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In a case like that, where a specific feature is of specific importance to you, I would recommend implementing a unit test for it, along the lines that you described.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As I'm sure you can appreciate, Revit and its API provides&amp;nbsp;many&amp;nbsp;thousands if not millions of similar&amp;nbsp;bits of functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some are important to the factory itself, some to certain developers, and it is&amp;nbsp;impossible to anticipate and implement unit test for every single thing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A guarantee or even an expression of intent such as you are asking for is not worth much without a unit test to back it up, I think.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My assumption would be "yes, this is the general intention" combined with "no, it cannot be guaranteed 100%... something unexpected is sure to crop up sooner or later"... which seems to be more or less what you are expecting in raising the issue &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2017 09:58:18 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-07-02T09:58:18Z</dc:date>
    <item>
      <title>Are UniqueIDs guaranteed to be the same after upgrading</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7195963#M57379</link>
      <description>&lt;P&gt;Are UniqueIDs guaranteed to be the same after upgrading a work-shared file from one version of Revit to another?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using them as an external key, I want to use new features of the RevitAPI and transform the results back into parameters of the older Revit model we are using due to project constraints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping the answer to this yes/no question is yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 18:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7195963#M57379</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2017-06-30T18:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Are UniqueIDs guaranteed to be the same after upgrading</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7195981#M57380</link>
      <description>&lt;P&gt;Afaik:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to this discussion for comprehensive, extensive,&amp;nbsp;exhaustive,&amp;nbsp;&lt;SPAN&gt;all-encompassing information:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/02/understanding-the-use-of-the-uniqueid.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/02/understanding-the-use-of-the-uniqueid.html&lt;/A&gt;&lt;/SPAN&gt;&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;</description>
      <pubDate>Fri, 30 Jun 2017 18:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7195981#M57380</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-06-30T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Are UniqueIDs guaranteed to be the same after upgrading</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7197901#M57381</link>
      <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I often get a lot of answers from your blog, it is a very good source of information. I think I read that link at the time but re-reading it now I interpret the line with the ‘serious roadblock’ comment as something that means there is not certain to be 100% consistency between the UIDs in an original model file and the UIDs in the upgraded model file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was envisaging the situation where new features of Revit would call for existing elements to be converted to new types which may lead to the regeneration of UniqueIDs in some instances. So, I was looking for the inner knowledge where they either say:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Yes, when updating the database structure between versions we are careful to ensure the UniqueIDs remain the same.”&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;“No, we can’t guarantee UniqueIDs remain the same after upgrade as this may need to change due to changes in the UniqueID system itself.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thinking about it some more we could easily find out by extracting all UniqueIDs before and after upgrade to see if they match up. If we have 100 UIDs from the old model and 150 UIDs from new model we could see if 100 UIDs are common to both (assuming different new elements would not be given UIDs from the old existing set).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 20:02:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7197901#M57381</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2017-07-01T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Are UniqueIDs guaranteed to be the same after upgrading</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7198302#M57382</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your appreciation and clarification.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, I see and understand what you are after.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You address&amp;nbsp;an interesting aspect&amp;nbsp;here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In a case like that, where a specific feature is of specific importance to you, I would recommend implementing a unit test for it, along the lines that you described.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As I'm sure you can appreciate, Revit and its API provides&amp;nbsp;many&amp;nbsp;thousands if not millions of similar&amp;nbsp;bits of functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some are important to the factory itself, some to certain developers, and it is&amp;nbsp;impossible to anticipate and implement unit test for every single thing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A guarantee or even an expression of intent such as you are asking for is not worth much without a unit test to back it up, I think.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My assumption would be "yes, this is the general intention" combined with "no, it cannot be guaranteed 100%... something unexpected is sure to crop up sooner or later"... which seems to be more or less what you are expecting in raising the issue &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 09:58:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/are-uniqueids-guaranteed-to-be-the-same-after-upgrading/m-p/7198302#M57382</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-07-02T09:58:18Z</dc:date>
    </item>
  </channel>
</rss>

