autodesk-forge - 有没有办法知道哪个revit链接文件属于forge查看器中的元素?
问题描述
我正在使用 Forge 查看器上的链接导入 revit 文件。我使用 zip 上传或模型派生 POST 引用来创建它。
我想通过它所属的链接(或主文件)过滤场景中的元素。
我深入研究代码以搜索此信息,但尚未找到任何东西。
有什么办法吗?
谢谢,
解决方案
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.
推荐阅读
- android - 如何使用颤动中的列表动态更改底部模态表的文本标题
- r - 如何为特定范围创建和插入包含分类变量的列
- windows - 如何从 PS 表达式中获取值?
- apache-spark - 在火花中加入多个 jdbc 连接表的最佳方法是什么?
- javascript - 使 return 语句等到函数中的所有其他内容完成
- android - android [Xamarin.Forms] 中唯一角半径值的自定义帧渲染器
- c# - 双向绑定需要“Path”或“XPath”例外。视窗 WPF
- android - 颤振中是否有等效的 CalendarView ?
- java - 使用流利的接口来验证使用 java 8 的对象
- javascript - I've created multiple filters functions and each one does its own job right, however, I'm not sure how to chain them so they all work together