Is it possible to load different parts (not everything ) of a model on demand when using autodesk forge viewer

175 Views Asked by At

I have integrated the autodesk forge viewer and can show design files(model) using it. Now I want to restrict the model data to be showed according to the roles of the user. For example, show only the engineering parts to the engineers and so on. I can hide elements but if a user want to see all elements, they can. This needs to be restricted. So, when the viewer is initialized with the model data, only the necessary data will be loaded.

1

There are 1 best solutions below

3
On BEST ANSWER

yes, you can do it through the following steps:

  1. save all dbid you want to show
  2. add it through options parameter of method
    viewer.loadDocumentNode(doc, viewables, {
      ids:[16168,12247,...]
    })