Buttons such as "measure" or "first person roaming" cannot be deleted through toolbar's removeControl.

by default, Forge Viewer provides some common buttons, including [Zoom], [Pan], [rotate], [explode], [measure], [first person Walk], [plane], and so on.
some friends see this blog, get the toolbar handle, and then delete the corresponding DOM element.
https://forge.autodesk.com/cl.

for [zoom], [translate], [rotate], [explode], etc., this method successfully removed the button, but found that it did not work for [measure], [first person roaming], etc.

Apr.04,2021

this is because buttons such as Zoom are initialized and loaded in the viewer main file, while others are handled in the corresponding extension, so it is not possible to simply manipulate the DOM element. You need to uninstall that Extension,viewer.unloadExtension ('Autodesk.FirstPerson'). But the function is gone again.

so it is recommended that you don't just delete it, but use Autodesk.Viewing.Viewer3D, instead of Autodesk.Viewing.Private.GuiViewer3D when initializing viewer.

    viewerApp.registerViewer(viewerApp.k3D, Autodesk.Viewing.Viewer3D);

in this way, viewer does not have any toolbars by default. You can create your own buttons. For functions such as "Zoom", switch directly:

  Viewer.setActiveNavigationTool('pan')

for [measure], [first person roaming], etc., load the relevant extension, first and then similarly, when your button is pressed, switch to the corresponding mode

  Viewer.setActiveNavigationTool('firstperson')

if you don't need the corresponding functionality, just uninstall extension as mentioned earlier

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b1bd-2c25d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b1bd-2c25d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?