You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm getting following error when tried to call (viewer3D.js Initialize function),
Uncaught TypeError: avp.RenderScene is not a constructor
at Viewer3DImpl.initialize (viewer3D.js?v=v4.0:26059)
at GuiViewer3D.Viewer3D.initialize (viewer3D.js?v=v4.0:44646)
at GuiViewer3D.initialize (viewer3D.js?v=v4.0:50771)
Even though after importing the following scripts:
Hi, I'm getting following error when tried to call (viewer3D.js Initialize function),
Uncaught TypeError: avp.RenderScene is not a constructor
at Viewer3DImpl.initialize (viewer3D.js?v=v4.0:26059)
at GuiViewer3D.Viewer3D.initialize (viewer3D.js?v=v4.0:44646)
at GuiViewer3D.initialize (viewer3D.js?v=v4.0:50771)
Even though after importing the following scripts:
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/three.js"></script>Here is my code,
this.LoadViewerDocument = function (viewer2DContainer) {
var options = {
'env': 'Local',
'document': './ES-TR-01AR/primaryGraphics.f2d'
};
setTimeout(function () {
viewer2D = new Autodesk.Viewing.Private.GuiViewer3D(viewer2DContainer, {})
}, 2000);
setTimeout(function () {
viewer2D.initialize(); // Initialize the viewer
viewer2D.loadModel(options.document);
this.onSuccessDocumentLoadCB();
}, 5000);
}
Anyone can suggest a solution for this.?
The text was updated successfully, but these errors were encountered: