Search code examples
autodesk-forgeautodesk-viewerautodesk

Load only specific GUIDs as priority in the first load of a file in Autodesk Forge Viewer


I currently have an application where the 3d rvt/svf files are loaded on the browser using the Autodesk Forge Viewer. The files when opened take a while to completely load.

I want to be able to load a file in the viewer in such a way that a select few guids load first or show up on the screen before others. This is needed to improve performance of the viewer for larger files, giving the user something basic to start with and then allowing them to show all the elements in the 3d file, once everything is loaded.

I couldn't find anything related to this in the API reference.

Any help is highly appreciated.

Thank you.


Solution

  • You can specify the dbIDs of objects you want to load in the viewer.loadDocumentNode method. Please see https://forge.autodesk.com/blog/minimizing-viewer-workloads-loading-models-partially-selected-components-and-features-only for more details.