<?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: unique ID for project in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7419748#M81979</link>
    <description>&lt;P&gt;I once created a dedicated add-in to address this issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/04/named-guid-storage-for-project-identification.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/04/named-guid-storage-for-project-identification.html&lt;/A&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, 29 Sep 2017 09:41:09 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-09-29T09:41:09Z</dc:date>
    <item>
      <title>unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/2869008#M81976</link>
      <description>&lt;P&gt;Does anyone know if there is a unique ID number for projects stored in the Revit file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found one in the ProjectInfo.uid (see code snippit below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            Autodesk.Revit.DB.Document actdoc = this.ActiveUIDocument.Document;&lt;BR /&gt;            ProjectInfo pi = actdoc.ProjectInformation;&lt;BR /&gt;            pid = pi.UniqueId;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this is the UID of the ProjectInfo object, it can be the same in 2 different Revit files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find a UID that is the same for the local and central files of the same project but different between seperate projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know if one exists?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2011 19:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/2869008#M81976</guid>
      <dc:creator>phildebrandt</dc:creator>
      <dc:date>2011-01-03T19:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/4484839#M81977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is almost the same question discussed here -&amp;gt;&amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/t5/Autodesk-Revit-API/How-do-you-access-a-model-s-GUID-or-UniqueId-using-the-Revit-API/td-p/3565152"&gt;http://forums.autodesk.com/t5/Autodesk-Revit-API/How-do-you-access-a-model-s-GUID-or-UniqueId-using-the-Revit-API/td-p/3565152&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old post but I was facing the same issue and I found something that may help you. This works for Revit 2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;UIDocument uidoc = commandData.Application.ActiveUIDocument;
Document doc = uidoc.Document;&lt;BR /&gt;
string ifcproject = ExporterIFCUtils.CreateProjectLevelGUID(doc, Autodesk.Revit.DB.IFC.IFCProjectLevelGUIDType.Project);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the website were I found the info&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://matteocominetti.com/revit-api-2013-ifcproject-guid-in-c/"&gt;http://matteocominetti.com/revit-api-2013-ifcproject-guid-in-c/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://matteocominetti.com/revit-api-2013-get-uniqueid-from-ifcguid-and-from-guid/"&gt;http://matteocominetti.com/revit-api-2013-get-uniqueid-from-ifcguid-and-from-guid/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 21:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/4484839#M81977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-03T21:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7419733#M81978</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find&amp;nbsp; solution for your problem, I'm facing the same issue right now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7419733#M81978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-29T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7419748#M81979</link>
      <description>&lt;P&gt;I once created a dedicated add-in to address this issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/04/named-guid-storage-for-project-identification.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/04/named-guid-storage-for-project-identification.html&lt;/A&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, 29 Sep 2017 09:41:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7419748#M81979</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-09-29T09:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7420928#M81980</link>
      <description>&lt;P&gt;Thank you Jeremy, I have implemented that, and&amp;nbsp; I will let you know about the result :).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 17:14:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/7420928#M81980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-29T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/12921531#M81981</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fast forward 7 years, anything new with that?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 11:23:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/12921531#M81981</guid>
      <dc:creator>mizrachi_amir</dc:creator>
      <dc:date>2024-07-26T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: unique ID for project</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/12921614#M81982</link>
      <description>&lt;P&gt;Nope, sorry, no news on this front. You might want to have a look and see whether there is a wish list item for this functionality in the Revit Idea Station and vote for that...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unique-id-for-project/m-p/12921614#M81982</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-07-26T12:15:18Z</dc:date>
    </item>
  </channel>
</rss>

