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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With