1

I'm trying to use IFC.js to create IFC files from a web application. The documentation says the library can both read and write IFC files.

Library here: https://ifcjs.github.io/info/

I have read the documentation, searched through the source code, and can not find any clues anywhere on how to export a file with the library. Perhaps I'm just being dense and scrolled right past it.

Does anyone know how to use this library to export a file?

The context is, I have a scene in Three.js I would like to turn into an original IFC.js file. I don't require any additional information to be attached, I just need the 3D mesh data and at most materials, converted into the IFC file format.

Grady
  • 113
  • 4
  • 2
    Hi! We are currently working on creating IFCs from scratch from Three.js scenes. We should have the first version of it these weeks. We'll announce and document it as soon as we have it. Cheers! – Antonio González Viegas Jul 27 '22 at 21:07

1 Answers1

0

You can use this library which is part of the same project. https://github.com/tomvandig/web-ifc

It includes an API to write IFC files:

https://github.com/tomvandig/web-ifc/blob/aaac5ca6e5215d0fe15508174b01aacc230f3250/src/web-ifc-api.ts#L196

Pablo D.
  • 26
  • 4