Hi,
I'm quite new to FreeCAD so I don't know/ fully understand all of the features in it yet. So far I have quite a positive experience with it and was quite surprised by the many file formats it supports.
What I would like to achieve is to get the IFC data, in particularly IFC GUID / IFC Global id, within the GLTF (metadata).
Importing the .ifc file and viewing the data is not a problem. The data is visible in FreeCAD; IFC Type, Global Id, etc.
I can also succesfully export the model to gltf, but the IFC Attributes are, as far as I'm aware, not being exported with the gltf.
So my question is: Is it possible to include IFC Attribute data in a gltf export in FreeCAD?
Other things I have tried are loading the IFC Attributes in a spreadsheet to export it as a json or xml. This did not work for me either. Not all the data seems to get included. I mainly need the Global id and could not find it in any of the generated spreadsheets that gets generated on importing an .ifc file.
For now i got the IFC data readable in .ifcjson through Python with ifcJSON-4 from BuildingSMART. I got that up and running in my terminal, but also get errors on trying to convert a selection of the ifc model to .ifcjson in FreeCAD.
I hope that anyone can help me with this or has some thoughts for alternative solutions if it's not possible to directly get the ifc GUID / global id in the gltf itself.
I'm using the following version of FreeCAD:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/Netherlands (en_NL)
GLTF export with IFC data
Re: GLTF export with IFC data
Mod edit: moved to IFC subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- thomas-neemann
- Veteran
- Posts: 11940
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: GLTF export with IFC data
what do you want this for?
Re: GLTF export with IFC data
I would not use FreeCAD for this. Export to IFC, then use IfcConvert from IfcOpenShell (what FreeCAD uses under the hood) to convert to glTF / glb.
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.