1

We have integrated AutoDesk Forge Viewer. We are sending a request to the Forge API's for conversion (using Model derivative API). After closing the Viewer, If we need to show the same file again, Currently we are posting the dwg file again for conversion to view it.

Instead is there a way so save the svf file in my local system so that I need not call the Forge web service twice for the same file.

According to the pricing, for every simple conversion job, its going to cost 0.2 credits.

Please suggest how I can avoid this same conversion second and n number of times.

Thank you,

Shiva Kumar

Shiva kumar
  • 673
  • 8
  • 23

2 Answers2

0

Unless the DWG file has changed, you do not need to upload the DWG file again and/or POST a translation again. If you do this, you will effectively consume 0.2cc. Instead, just reference the URN you had received after upload/translation when starting the viewer. The 'bubble' or SVF persists on the backend depending of the storage policy you chose. For example, if you create a transient bucket, the file and bubble will persists for 24h, temporary for 1 month, and persistent forever.

cyrille
  • 2,616
  • 1
  • 10
  • 18
  • Thank you for the answer. Could you please shed more light in the way of saving the svf file in my local system with help of urn? – Shiva kumar Nov 14 '18 at 05:20
  • Well, this is a different question - Visit this [website](https://extract.autodesk.io) and its [github repo](https://github.com/cyrillef/extract.autodesk.io) for the source code. While this is possible, I would recommend that you choose another approach documented [here](https://forge.autodesk.com/blog/disconnected-workflows) – cyrille Nov 15 '18 at 16:55
0

I have found a reference to how to iterate through the bucket and see the files which are present in the bucket.

We can login in the below live demo using the forge credentials.

Live Demo

Source Code

Thanks.

Shiva kumar
  • 673
  • 8
  • 23