Skip to main content
Question

ifc writer: how to export an existing guid as ifcguid?

  • September 3, 2018
  • 2 replies
  • 46 views

I want to write an ifc file where all objects get a guid from the source.

In my source dataset (rooms) there is already a primary key (in guid format). I want to keep this key in the exported objects (IfcSpace). I have tried to set different attributes with this value (ifc_id, ifc_unique_id, GlobalId), but the ifc writer always generates a new guid for each object.

How can I arrive to export an already existing guid for each object?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jovitaatsafe
Safer
Forum|alt.badge.img+11

Hi @aristotls,

Have you tried writing your guid attribute out as part of a property set? Perhaps you could make the guid attribute into a geometry trait, then add it onto an existing property set definition, or create a new definition. It won't exactly replace the GlobalId attribute, but you'll have written out your original primary key values. Here is the article that I'm thinking of: AutoCAD to IFC Conversion Example. Hope that generates some ideas!


  • Author
  • September 6, 2018

Thanks for this solution. But I need to write the IfcRoot.GlobalId value. Is there no way to give this value to the ifc writer?