Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DWG unable to load with new viewer

Previously I used this viewer script which used to load dwg correctly

<script src="https://autodeskviewer.com/viewers/2.5/viewer3D.min.js"></script>

Now am following this tutorial to setup an initial viewer:

https://developer.autodesk.com/en/docs/viewer/v2/tutorials/basic-viewer/

Now none of my files are getting loaded on viewer. Viewer just show's animated loader and is not able to load the files. When I changed the viewer from:

<script src="https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js"></script>

to:

<script src="https://autodeskviewer.com/viewers/2.5/viewer3D.min.js"></script>

the file gets load in that viewer.

And their is no example about how to use Markup API. Could Anyone Please provide an example.

like image 470
Priyank Bhatt Avatar asked Nov 09 '22 13:11

Priyank Bhatt


1 Answers

The latest codebase for The Viewer can be included from Autodesk’s CDN. I did tested and it's live. Please also check this tutorial.

<link rel="stylesheet" href="https://developer.api.autodesk.com/viewingservice/v1/viewers/style.min.css" type="text/css">
<link rel="stylesheet" href="https://developer.api.autodesk.com/viewingservice/v1/viewers/A360.css" type="text/css">

<script src="https://developer.api.autodesk.com/viewingservice/v1/viewers/three.min.js"></script>
<script src="https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js"></script>
<script src="https://developer.api.autodesk.com/viewingservice/v1/viewers/Autodesk360App.js"></script>
like image 100
Augusto Goncalves Avatar answered Jan 04 '23 01:01

Augusto Goncalves