Revit IDs

Revit IDs

michael_pescht
Community Visitor Community Visitor
550 Views
1 Reply
Message 1 of 2

Revit IDs

michael_pescht
Community Visitor
Community Visitor

Hi everyone,

first of all: i'm new here, so i apologize in advance for any formal errors

 

there are several explainations for the used IDs in Revit.

Unfortunately, I have not found a complete definition of all IDs in a document / post. Therefore I would like to have my compilation checked here in the forum. Thanks in advance:

 

Revit Element UniqueId
"UniqueId"
Is a stable unique identifier for an element within the document. Each element has such a unique identifier, which is returned by the API as a string.
Beispiel: 626f5187-9a17-4713-98b7-532ca3cc31b1-000dabe8
Hexadecimal sequence: 8-4-4-4-12-8 (GUID + 😎
Revit: UniqueId = EpisodeId (8-4-4-4-12) + Hexadecimal(Id) (8)

 

Revit EpisodeId
"EpisodeId"
Is the first part of UniqueId, including the characters of the sequence 8-4-4-4-12 and refers to the project and the session.
Beispiel: 626f5187-9a17-4713-98b7-532ca3cc31b1

 

Revit element Id
"Id"
Example decimal: 895976
Example hexadecimal: 000dabe8
Is the unique identification for an element within a single project.

Revit DWF GUID (Export GUID)
"DwfGuid"
Hexadecimal version of the ifcGUID
Hex(IfcGUID) = DWF GUID
Beispiel: 626f5187-9a17-4713-98b7-532ca3c19a59

 

Revit ifcGUID
It is a 22 character code (string) using the 64 character base which includes numbers, upper and lower case letters and some special characters. Although it looks completely different from other GUIDs, the IFC GUID is completely identical to the DWF GUID, but is expressed with a different encoding to make it shorter and easier to understand.
Compressed version of the DWF GUID.
Hex(IfcGUID) = DWF GUID
Beispiel: compress(626f5187-9a17-4713-98b7-532ca3c19a59)

 

Revit ExternalId
The external ID of a geometry object.
Beispiel: 626f5187-9a17-4713-98b7-532ca3c19a59-000dabe8
Revit: ExternalId = DwfGUID + "-" + Hex(ElementId)

0 Likes
551 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Dear Michael, 

  

Thank you for your very valuable compilation. I searched for the information I am aware of on element ids and unique ids and compiled the following two lists for you:

  

Element Id

  

  

Unique Id

  

  

I have not checked exhaustively, but afaict all the info correlates with your summary.

  

Cheers

  

Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open