Autodesk.Viewing.Initializer({ "env": "Local" }, function(){
var options = {
env: 'Local',
useADP: false,
useConsolidation: true,
enableWorker: false,
autoStart: false,
useWebVR: false,
useWebVRPolyfill: false,
};
var viewerElement = document.getElementById('MyViewerDiv');
var viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerElement, options);
viewer.start();
Autodesk.Viewing.Document.load(urn, function(doc) {
var bv = doc.getDocumentNode().findViewableNode();
var svfUrl = doc.getViewablePath(bv);
var modelOptions = {
sharedPropertyDbPath: doc.getPropertyDbPath()
};
viewer.loadModel(svfUrl, modelOptions);
}, function(errorCode, errorMsg) {
console.log(errorCode, errorMsg);
});
});