简体   繁体   中英

Personal toolbar button in Forge Viewer not appearing

I followed the tutorial to learn Autodesk Forge. I linked my BIM 360 account to the Forge Viewer. I would now like to add extensions to it and have a button on the toolbar that links to my extensions.

However when I follow the extension tutorial, nothing shows up. I also tried this one https://forge.autodesk.com/en/docs/viewer/v5/tutorials/toolbar-button/#before-you-begin and nothing appear.

I do not know what I am doing wrong since it seems to work if we follow the tutorial...

I am working on VS code

Right now, my code looks like this in the index.html file : enter image description here

The rest is exactly like the tutorial except that I replaced "MyAwesomeExtension" with "PieChartExtension"

One thing to try will be to switch your var config3d to the following:

var config3d = {extensions: ['PieChartExtension']}

The reason might be, your syntax might be affecting and that is why the Viewer does not understand what to load. Did you check the console for any messaging?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM