SDS CONT
SDS CONT

Reputation: 1

Translate multiple models in Forge Model Derivative API

I want to translate multiple models using the Forge API. Currently we are able to translate a single model successfully. Our requirement is to load multiple models in the Forge viewer. For that we need to translate multiple files in the Forge Model Derivative API.

Upvotes: 0

Views: 252

Answers (1)

michael beale
michael beale

Reputation: 1196

To translate multiple models, is the same as translating a single model in your Forge Bucket storage. Once you have created the SVFs, grab their URNs and load multiple models into the Forge Viewer using this blog post as your guide:

https://forge.autodesk.com/blog/loading-multiple-models-forge-viewer-v7

The trick is to set this Viewer option...

viewer.loadDocumentNode(doc, viewables,{ 
     keepCurrentModels: true,
     ...etc

Let me know if that helps Cheers Michael

Upvotes: 2

Related Questions