Generate GUID in Revit

Generate GUID in Revit

AAdawiBIM
Contributor Contributor
21.396 Görüntüleme
33 Yanıt
Mesaj 1 / 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 Beğeni
21.397 Görüntüleme
33 Yanıt
Replies (33)
Mesaj 2 / 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 Beğeni
Mesaj 3 / 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 Beğeni
Mesaj 4 / 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 Beğeni
Mesaj 5 / 34

Anonymous
Uygulanamaz

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."

Mesaj 6 / 34

Anonymous
Uygulanamaz

Dear

 

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

0 Beğeni
Mesaj 7 / 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.

Mesaj 8 / 34

Anonymous
Uygulanamaz

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 Beğeni
Mesaj 9 / 34

Anonymous
Uygulanamaz

 


@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 Beğeni
Mesaj 10 / 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 Beğeni
Mesaj 11 / 34

Anonymous
Uygulanamaz

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 Beğeni
Mesaj 12 / 34

mdulaney
Enthusiast
Enthusiast

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

0 Beğeni
Mesaj 13 / 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 Beğeni
Mesaj 14 / 34

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


0 Beğeni
Mesaj 15 / 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 Beğeni
Mesaj 16 / 34

Anonymous
Uygulanamaz

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 Beğeni
Mesaj 17 / 34

mdulaney
Enthusiast
Enthusiast

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

0 Beğeni
Mesaj 18 / 34

Anonymous
Uygulanamaz

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 Beğeni
Mesaj 19 / 34

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


0 Beğeni
Mesaj 20 / 34

Anonymous
Uygulanamaz
 

Thanks anyway.

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

0 Beğeni