How can I generate completely new IFC GUIDes for all elements while IFC export

How can I generate completely new IFC GUIDes for all elements while IFC export

Anonymous
Not applicable
1,484 Views
5 Replies
Message 1 of 6

How can I generate completely new IFC GUIDes for all elements while IFC export

Anonymous
Not applicable

Hi all,

 

Szenario:

I have an construction project with 2 or more buildings. All these buildings are similar. Ok, I plan the first building in Revit with some building elements (walls, doors, windows etc.) and some 2D-Descriptions and dimensions. Then I export this project "BLDG1" in IFC. I close Revit. In next I copy and rename this revit project with the windows datei explorer. Ok, then I have "BLDG1.RVT" and "BLDG2.RVT". I open "BLDG2" in Revit and change the projekt point to an other place. Then I add and change some walls, doors, etc and despcriptions. Then I export this project to IFC.

 

The problem:

The most IFC GUIDs in both IFC files are the same. Many programs need GloballyUniqueIDs. I need a Revit option or a workaround to generate new GUIDs for all elements.

 

Note: Whe I safe the "BLDG2" file as an Revit template and I export this to IFC then I get new GUIDs for IFCPROJECT, -SITE, -BUILDING and -BUILDINGSTOREY, but not for all other lements and types.

0 Likes
1,485 Views
5 Replies
Replies (5)
Message 2 of 6

L.Maas
Mentor
Mentor

Not sure if it will work as I have never experimented with it before.

 

Option 1

When you  have copied the file and opened it. Copy everything and then delete the original.

As the elements have been copied they should get new GUIDs.

 

Option 2

Export copied project to an IFC and make sure it will create an IfcGUID parameter.

Capture.PNG

In later versions of Revit (2019?) this parameter is writable.

You could use a Dynamo script to modify all these values.

Then export again to IFC if I am correct IFC should use the value from the IfcGuid parameter.

 

As mentioned, not sure if it will work, but do some experiments. Let us know how you did and your results.

Might be interesting for other users as well.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 3 of 6

Anonymous
Not applicable

Hello Louis,

 

thanks, I manually tested option 2 and it works fine. Next I looked for a Dynamo script in the package menu, but I can't find a suitable function. Do you know where I can get a Dynamo function/script to write new GUIDs for elements in a open Revit project?

 

 

0 Likes
Message 4 of 6

ToanDN
Consultant
Consultant
Link BLDG1 to a new Revit project, bind the link and export to IFC.
0 Likes
Message 5 of 6

Anonymous
Not applicable

Yes, I have try it and it run. Small side effect: Alle room numbers with the same value was new numbered...

Thx

0 Likes
Message 6 of 6

gowtham_venkitusamy
Participant
Participant

is any possible to generate completely new IFC GUIDes for all elements  using revit api's using

dotnet code

0 Likes