mardi 30 août 2016

ember cli and autodesk forge

I am creating a Autodesk viewer using the Autodesk forge API and Emberjs Framework. I have the viewer working but I want to add extensions to edit the model and provide more graphic information. Using ember cli how would you load the extension code? I currently have the code placed in the vendor folder and have it mapped in the ember-build file. I than load the viewer and extensions in the controller using the following code:

var config3d = {extensions: ['ExtensionName']}; viewerApp.registerViewer(viewerApp.k3D, Autodesk.Viewing.Private.GuiViewer3D, config3d);

Do I not have the file in the right folder or am I not calling the extension properly at the registerViewer function?




Aucun commentaire:

Enregistrer un commentaire