autodesk-forgeautodesk-viewerautodesk-model-derivativeautodesk-data-managementbim

Forge Viewer - can we make selections/highlight on loaded models and save in database so that we can show that selection next time user loads it?


Forge Viewer - can we make selections/highlight on loaded models and save in database so that we can show that selection next time user loads it? Is this possible? Or how can we add sticky notes/RFI information /issues spot in the model. I am working in a web application, how do we manage that information and save to some database so that we can show that information later when the same model is viewed again?

Thanks in advance


Solution

  • You can get or set the selection using Viewer APIs. Specifically, the getSelection method returns a list of object IDs that you can store wherever you want, and the select method accepts a list of object IDs that you want selected.

    For more advanced extensions, feel free to browse our samples over at https://github.com/Autodesk-Forge. One demo that could be of particular interest is the "Forge Digital Twin" (source code, and live demo) which stores "reported issues" to a database, and later shows them as 3D annotations on the model: Forge Digital Twin