英文:
Autodesk APS viewer: Sheets & Views
问题
我目前正在开发一个需要查看多个PDF/2D图纸的应用程序。我已经在我的应用程序中实现了Autodesk.DocumentBrowser
的使用,如下图所示。
然而,我的同事要求更改应用程序的样式,使其类似于BIM360的Sheets & Views选项卡,如下图所示。是否有方法可以实现这样的效果?
或者,我可以使用Autodesk.DocumentBrowser
使其在每次查看器启动时自动激活并定位在左上角吗?
英文:
Currently, I am working on an application that requires viewing multiple PDF/2D sheets. I have implemented the use of Autodesk.DocumentBrowser
in my application as shown in the image below.
However, my college has requested a change in the application's style to resemble the BIM360 Sheets & Views tab, as depicted in the image below, is there a way to do that.
Or, can I use Autodesk.DocumentBrowser
to be automatically activated and positioned in the left corner every time the viewer.
答案1
得分: 2
根据我所知,Autodesk.DocumentBrowser
不支持这种类型的定制,很遗憾。您_可以_调整和重新定位实际的Autodesk.Viewing.UI.Panel
,以容纳DocumentBrowser内容,将其转变为侧边栏,但在我看来,这有点太繁琐了。
如果您想要类似于BIM360的外观和感觉,我建议您简单地自己构建它,使用纯HTML。您可以查看DocumentBrowser源代码(特别是ThumbnailListView
类)以供参考。
英文:
As far as I know, the Autodesk.DocumentBrowser
does not support this kind of customization, unfortunately. You could resize and reposition the actual Autodesk.Viewing.UI.Panel
holding the DocumentBrowser content to turn it into a sidebar but that's a bit too hacky IMHO.
If you want a look&feel similar to that of BIM360, I'd suggest that you simply build it yourself as vanilla HTML. You could look at the DocumentBrowser source code (specifically the ThumbnailListView
class) for reference.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论