Generate GUID in Revit

Generate GUID in Revit

AAdawiBIM
Contributor Contributor
21,109 Views
33 Replies
Message 1 of 34

Generate GUID in Revit

AAdawiBIM
Contributor
Contributor

Dears,

 

I need help for What is the best way to generate GUID code in Revit?

 

and if I generate GUID more than once, It will change for the same element or will remain when generation happen several times.

 

Thanks and my best regards,

0 Likes
21,110 Views
33 Replies
Replies (33)
Message 2 of 34

L.Maas
Mentor
Mentor

Not sure what you are after. You are not generating GUIDs, Revit does. When objects are created they get an (GU)ID appointed.

But on the BUILDINGCODER website you can find a discussion about GUIDs which might help you.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 3 of 34

Jacob.westergaard
Autodesk Support
Autodesk Support

Hi,

 

Thank you for taking your time to post this on the forum, 

 

As mentioned in the comment above, GUIDs gets generated automatically every time you create something in Revit. 

If you modify an object or move it, the GUID will remain the same - However, it will generate a new one if you copy/paste the object. 

 

What is the aim here? Are you using it for Field? 


Jacob Westergaard

Autodesk Premium Support Team
AEC Premium Support Services
0 Likes
Message 4 of 34

AAdawiBIM
Contributor
Contributor

Thank you Jacob,

I want to extract GUID as a filed and use it as a unique code for elements in the model and to be locked filed cannot be modified.

0 Likes
Message 5 of 34

Anonymous
Not applicable

This may be useful:

 

http://thebuildingcoder.typepad.com/blog/2009/02/uniqueid-dwf-and-ifc-guid.html

 

"A GUID is a 16-byte, i.e. 128 bit number. It is commonly split up into several fields of varying lengths and written in groups of 8-4-4-4-12 hexadecimal characters, i.e. 32 characters to represent the 16 bytes or 128 bits.

On the other hand, we have the Revit UniqueId. Every element has such a unique identifier, which is returned through the API as a string. This string is formatted in groups of 8-4-4-4-12-8 hexadecimal characters. It is thus similar to the standard GUID format, but has 8 additional characters at the end. These 8 additional hexadecimal characters are large enough to store 4 bytes or a 32 bit number, which is exactly the size of a Revit element id."

Message 6 of 34

Anonymous
Not applicable

Dear

 

For now, I am not able to see the ID in schedule as attached. I am really stuck for now.  Please help.

0 Likes
Message 7 of 34

L.Maas
Mentor
Mentor

Better to start a new thread. Further maybe explain what you are trying to do.

How are you trying to generate those IfcGUIDs?

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 8 of 34

Anonymous
Not applicable

I need the GUID/s to create the excel report from revit and to  transfer my model into GIS.

there is (u can see) some GUID/s not showing into the schedule which I have created from the revit schedule. I have created the "Communication Device Schedule" to understand in better way. The screenshots is attached below for example.  Please help.

0 Likes
Message 9 of 34

Anonymous
Not applicable

 


@Anonymous wrote:

I need the GUID/s to create the excel report from revit and to  transfer my model into GIS.

there is (u can see) some GUID/s not showing into the schedule which I have created from the revit schedule. I have created the "Communication Device Schedule" to understand in better way. The screenshots is attached below for example.  Please help.



Any help from AutoDesk guys ??

0 Likes
Message 10 of 34

L.Maas
Mentor
Mentor

Note that the ifcGUID are only generated after export to IFC. So if you add new elements to the project after exporting to IFC those will not have a IfcGUID parameter yet.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 11 of 34

Anonymous
Not applicable

I have save as the family for the door tag and changed the door type (lable) as ifcGUID. I am not able to pply the ifcGUID tag to my door model.  as I am not able to find it into the schedule too.  I have also tried the HOT GEAR plugin to export aand import the ID's But still stuck in the same.  Please help... (I have attached the image for your reference)

0 Likes
Message 12 of 34

mdulaney
Enthusiast
Enthusiast

Do element GUID's change in an XREF file that is now bound into the host file? 

0 Likes
Message 13 of 34

Patty_Willow
Contributor
Contributor

Hi,

 

There is a free Revit plugin call DiRoots that can extract the GUID (and pretty much anything else) to and from excel

 

https://diroots.com/

 

Check it out

 

Cheers

0 Likes
Message 14 of 34

mdulaney
Enthusiast
Enthusiast
Thank you Patty. I'll take a look.


0 Likes
Message 15 of 34

mguerinTFPFV
Explorer
Explorer

Merci pour cette information, mais que le cas ou on import un nouvel élément IFC dans du fichier en cours qui a déjà été exporté comme generer les nouveaux ifcGUID des elements importés.

Par avance merci de votre réponse.

0 Likes
Message 16 of 34

Anonymous
Not applicable

Hi,

When I export an IFC from Revit , I have some components without IfcGUID !!!

 

I don't know why.

 

Can you tell me a reason please.

 

Thanks

0 Likes
Message 17 of 34

mdulaney
Enthusiast
Enthusiast

No, I do not know. I'm sorry I could not help.

0 Likes
Message 18 of 34

Anonymous
Not applicable

Hi,

 

When I export projects from Revit to IFC I have all time the same IfcSite GUID, IfcBuilding GUID, and IfcProject GUID for all projects.

 

Have you an idea about that?

 

Thanks

 

0 Likes
Message 19 of 34

mdulaney
Enthusiast
Enthusiast
No, I don't know why. Maybe someone from Autodesk can answer your question.


0 Likes
Message 20 of 34

Anonymous
Not applicable
 

Thanks anyway.

I hope there will be another person who will see my questions. 

0 Likes