简体   繁体   中英

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.

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 .

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:

// 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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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