Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

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

5 ANTWORTEN 5
Antworten
Nachricht 1 von 6
Anonymous
1053 Aufrufe, 5 Antworten

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

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.

5 ANTWORTEN 5
Nachricht 2 von 6
L.Maas
als Antwort auf: Anonymous

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.

Nachricht 3 von 6
Anonymous
als Antwort auf: L.Maas

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?

 

 

Tags (1)
Nachricht 4 von 6
ToanDN
als Antwort auf: Anonymous

Link BLDG1 to a new Revit project, bind the link and export to IFC.
Nachricht 5 von 6
Anonymous
als Antwort auf: ToanDN

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

Thx

Nachricht 6 von 6
gowtham_venkitusamy
als Antwort auf: L.Maas

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

dotnet code

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report