Hi.
Is it possible to change the IfcGUID from elements and export it with the new ones?
I already have changed the IfcGUID.
In Lookup i also see the new IfcGUID
But in the IFC-Model i still geht the old IfcGUID.
Hi.
Is it possible to change the IfcGUID from elements and export it with the new ones?
I already have changed the IfcGUID.
In Lookup i also see the new IfcGUID
But in the IFC-Model i still geht the old IfcGUID.
I am really, really curious why you want to do that in the first place?
I’m transfering objects from Civil3D to Revit and in Revit they will not be updated… they will be replaced.
And if i want do export the ifc in revit, the objects will always get/have new ID’s.
That why i maybe want to transfer the civil3d-object-ID’s and want to use them als IfcGUID’s in Revit.
This implies that it’s possible. IsReadOnly = False
means that the parameter can be modified in some way. UserModifiable = False
means that it can’t be modified through the UI, only through the API.
EDIT: Ok, weird. It’s definitely UserModifiable
, so I’m not sure why it’s shown that way in Lookup. Have you tried changing it?
what you see in lookup is the new IfcGUID which I have changed with Dynamo, as you can see on my first screenshot.
My problem is that if I export the IFC, the object still get’s the old ID… you can see that on my third screenshot and I don’t know why ::
Is this an export to a new model or to the existing one? Have you changed any other values for that element? Have you confirmed that you don’t have two objects in the IFC model now or that other parameter changes are still being pushed to the model? If you change the guid then the IFC model likely won’t have anyway to identify the objects as being the same element.
Why are you transferring civils 3d into Revit to then export out to IFC? Why are you not using the IFC exporter for Civil 3d?
Civil 3d IFC Exporter addon - Help
In revit for the IFC exporter settings, if you untick “Store the IFC GUID in an element parameter after export”. This should then not update the data? But it may still update the IFC GUID that the IFC exporter auto generates as part of the export onto the elements within the IFC file.
I’m transfering the C3D-Project to Revit because of our company processes.
i have checked the Revit-IFC-Export settings…
What i can see in Lookup and modify with Dynamo is the IfcGUID which you also can see in the object properties.
If i modify the ID and export the project with the setting for storing the ID in an element parameter, the IfcGUID-Parameter will be resetted to the original value.
If i deactivate the storing, the Paramter still has my own ID BUT in the exported IFC the object still gets the original one.
.
.
It is possible to open the IFC with an editor and change the ID’s… but this is to complicated.
Why not create a “Civil3dObjectId” parameter in revit and apply this object id onto that. Then you still have this link into civil 3d
The IFCGUID is generated as a by product of the element/elementID in revit, therefore it will generally updated the IFCGUID because the object ID does not match into this hashing/coding they have used to generate it. You could go through the IFC exporter source code to work out how it is created - GitHub - Autodesk/revit-ifc: IFC for Revit and Navisworks (2019+)
By creating what you are doing you may be putting civils objects into the incorrect IFC Schema and therefore not creating a compliant IFC file, just something to be aware. Also some Infrastructure Schemas of IFC only become available in “IFC 4.3 Add 2”, which revit may not be able to place objects onto but the civils 3d addon can.
a new “Civil3dObjectId” parameter was also a thought i had…
i have to discuss if this could be an option.
and the rest…
maybe one of our programmers can take a look at.