Autodesk APS viewer: Sheets & Views

huangapple go评论98阅读模式
英文:

Autodesk APS viewer: Sheets & Views

问题

我目前正在开发一个需要查看多个PDF/2D图纸的应用程序。我已经在我的应用程序中实现了Autodesk.DocumentBrowser的使用,如下图所示。

然而,我的同事要求更改应用程序的样式,使其类似于BIM360的Sheets & Views选项卡,如下图所示。是否有方法可以实现这样的效果?

或者,我可以使用Autodesk.DocumentBrowser使其在每次查看器启动时自动激活并定位在左上角吗?

Autodesk APS viewer: Sheets & Views
Autodesk APS viewer: Sheets & Views

英文:

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.
Autodesk APS viewer: Sheets & Views
Autodesk APS viewer: Sheets & Views

答案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.

huangapple
  • 本文由 发表于 2023年6月19日 14:18:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76504041.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定