0

I'd like to update my project with the latest version of the Forge Viewer. I haven't previously been using versioning this far. How would I update the Forge Viewer to the latest version in my code?

artobii
  • 175
  • 11

2 Answers2

1

No versioning, you've been naughty! Take a look at this article:

Forge Viewer - Always use versioning in production code

The latest version is 4.0.0

Felipe
  • 4,325
  • 1
  • 14
  • 19
1

You just have to point to the same resources, but omitting the version, thus grabbing the last version.

For example, you would need to include in your html file:

<!-- The Viewer CSS -->
<link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/style.min.css" type="text/css">
    ...
<!-- The Viewer JS -->
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/three.js"/>
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/viewer3D.js"/>

At the same time you might want to be careful. We always advice for use versioning in production code.

Check this post from Stephen for more in how and why.

denis-grigor
  • 505
  • 5
  • 9