简体   繁体   English

如何在 Forge Autodesk 中仅显示特定视图

[英]How to show only specific a view in Forge Autodesk

Its been a couple of days I had been working on Forge Api of Autodesk and I am doing well with my implementation as per requirement recently I am trying to render a specific / single view Example - I am having a RVT file which renders a building with 4 rooms now my issue is there are 4 people and I want to only show one room to each of this people so Room A to Person A, Room B to Person B and so On, Room B should not be visible to person A.几天来我一直在研究 Autodesk 的 Forge Api,最近我按照要求在我的实现方面做得很好4 个房间现在我的问题是有 4 个人,我只想向每个人展示一个房间,所以 A 房间给 A,B 房间给 B 等等,A 不应该看到 B 房间。

In short I dont want to render the whole model I am only interested in rendering few model inside a parent model简而言之,我不想渲染整个模型,我只对在父模型中渲染几个模型感兴趣

I had been going to the documentation and I could not find much help from it so can some one guide me over it or could refer me a right place in the documentation which I could use to implement above scenario我一直在查看文档,但找不到太多帮助,所以有人可以指导我完成它,或者可以在文档中向我推荐一个正确的位置,我可以用它来实现上述场景

This is typically handled at the design level, for example, by hiding elements in specific views in Revit .这通常在设计级别处理,例如,通过在 Revit 中的特定视图中隐藏图元

The Forge Viewer can help a bit, though: if you know the dbIDs of the objects you want to filter, you can pass them into the loadDocumentNode method like this:不过,Forge Viewer可以提供一些帮助:如果您知道要过滤的对象的 dbID,则可以将它们传递到loadDocumentNode方法中,如下所示:

// Include the dbIDs of the elements you want to load in the `options.ids` array
const options = { ids: [123, 456] };
viewer.loadDocumentNode(doc, node, options);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM