首页 > 解决方案 > 有没有办法知道哪个revit链接文件属于forge查看器中的元素?

问题描述

我正在使用 Forge 查看器上的链接导入 revit 文件。我使用 zip 上传或模型派生 POST 引用来创建它。

我想通过它所属的链接(或主文件)过滤场景中的元素。

我深入研究代码以搜索此信息,但尚未找到任何东西。

有什么办法吗?

谢谢,

标签: autodesk-forgeautodesk-viewer

解决方案


One simple approach that you could implement right away and that adds no overhead to the RVT or Forge model is to maintain your own side database mapping each Revit UniqueId to the RVT document containing it, and use that to answer your question. The UniqueId is also available in the Forge viewer, so you can use that as a key to determine the source RVT.

Another yet simpler but much heavier immediate solution would be to add the RVT document in a shared parameter to each element, so that this property also becomes available in the Forge viewer.


推荐阅读