Task 4 – Display the Model in the Viewer
To display the SVF2 file you generated, you can create an HTML page and embed the source file URN in it (Option 1 below). Alternatively, you enter the source file URN in an HTML page we have already created for you (Option 2).
Option 1: Embed the Source File URN in an HTML Page
- Insert an instance of the Viewer in an HTML page, and initialize it as per the instructions provided in the Viewer Basics topic in the Viewer SDK documentation:
Parameter SVF2api
streamingV2env
AutodeskProduction2 - Embed the URL safe Base64-encoded URN of the source file, which you obtained in the previous task, as described in the topic Load a Model
Note: Add urn:
to the URL safe Base64-encoded URN, when you embed it in the JavaScript code, as show in the following image.

Option 2: Enter the Source File URN on an existing HTML page
We have created a web page based on the instructions provided in Option 1. You can use it to verify the SVF2 file you just generated.
- Display the webpage for SVF2 by clicking the link in the following table:
SVF2
Show Web page ![]()
Source
- In the Access Token box, specify the access token you obtained in Task 1 of this walkthrough.
- In the Source File URN (encoded) box, specify the URL safe Base64-encoded URN of the source file, which you noted down in the previous task.
- Click Submit.
You should see a screen similar to the following.