I’m looking at the ifc 5 master and I noticed that the guid format is changed from 22 characters to 32, but this way I don’t lose the references to the objects stored with the old format?
Not an expert on GUIDs, but you can go from the IFC’s 22 char to the IFC5 UUID v5.
For example, using IfcOpenShell in Python:
import ifcopenshell.guid
import uuid
compressed = "0kZ8R2mP8DzeP94rYQk$h2"
hex_str = ifcopenshell.guid.expand(compressed)
as_uuid = uuid.UUID(hex_str)
print(as_uuid)
# → 2e8c86c2-c192-0df6-8649-13589abbfac2