0

I have implemented multiple models viewer using Autodesk forge. We are trying to achieve a functionality where users could select entities from different models from multi-model viewer and export a single obj file out of it.

but it seems, Translate a Source File API allows just a single model URN to be passed. I'm looking for a way where I could create a single Obj from more than one model URN.

ajitspyd
  • 754
  • 5
  • 8

1 Answers1

1

I think there is not built-in way to do that actually. If you are working with NodeJS you can use glTF file format and follow this method :

glTF is well supported now on many platforms and pretty efficient but if you really need OBJ you can use assimpJS (which is the JS port of assimp) to convert your files.

AlexAR
  • 1,052
  • 1
  • 9
  • 15
  • I agree. While Forge allows you to aggregate multiple models in the viewer, it doesn't really "bake" multiple models into a single one. The approach suggested by Alex (converting individual Forge models to glTFs and then combining those) makes the most sense. – Petr Broz Apr 07 '22 at 13:43