Juiin Hao
Juiin Hao

Reputation: 15

How to load 3d models in forge viewer which have been uploaded into Autodesk Construction Cloud (ACC) docs?

  1. I uploaded a 3D revit (.rvt) file into ACC docs and managed to get the item's urn.
  2. I also initialized a forge viewer with access token obtained using client ID and secret generated by the application which was created by an account with license in the same ACC environment.

I couldn't load the 3d model with the viewer initialized by the access token because onDocumentLoadFailure() - errorCode:4 was given.

May I know what's the cause of this problem and how do I load my revit file in forge viewer which has been uploaded into ACC docs ?

Upvotes: 1

Views: 185

Answers (1)

AlexAR
AlexAR

Reputation: 1324

You can find a tutorial that explains how to access hubs here : Hubs browser

I believe the error code you received is 403 Access denied. To resolve this, you will need to provide access to your app in the Account Admin. You can find instructions on how to do this in this link: Manage access to docs.

Please note that the page describes how to provide access for BIM360 projects, but as far as I know, the process is the same for ACC projects.

Upvotes: 1

Related Questions