Forge Viewer: Show bottom toolbar and markups at the same time

偶尔善良 提交于 2019-12-11 15:17:56

问题


I'm developing a tool that allow's several users to add markups to the same autocad drawings. I also want the users to be able to use the bottom toolbar of the forge viewer to hide/show layers and the properties popup.

The markup extension is good to add svg markups, however it hides the bottom toolbar of the forge viewer when entering the edit mode. It seams that the only way to show the bottom toolbar of the forge viewer is to call the .hide() method on the extension object which will hide the markups.

Is there a way to show the bottom toolbar and the markups at the same time?


回答1:


Try:

Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(viewer)

However some of the built-in functionality (panning etc) disabled in markup mode (for compatibility reasons) which is why the toolbars were hidden away in the first place.



来源:https://stackoverflow.com/questions/56075628/forge-viewer-show-bottom-toolbar-and-markups-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!