简体   繁体   English

Forge Viewer-我们可以在加载的模型上进行选择/突出显示并保存在数据库中,以便下次用户加载时可以显示该选择吗?

[英]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? Forge Viewer-我们可以在加载的模型上进行选择/突出显示并保存在数据库中,以便下次用户加载时可以显示该选择吗? Is this possible? 这可能吗? Or how can we add sticky notes/RFI information /issues spot in the model. 或者我们如何在模型中添加便签/ RFI信息/问题点。 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? 我正在使用Web应用程序,我们如何管理该信息并将其保存到某个数据库中,以便稍后再次查看同一模型时可以显示该信息?

Thanks in advance 提前致谢

You can get or set the selection using Viewer APIs . 您可以使用Viewer API获取或设置选择。 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. 具体来说, getSelection方法返回可以存储在任何位置的对象ID的列表,而select方法接受要选择的对象ID的列表。

For more advanced extensions, feel free to browse our samples over at https://github.com/Autodesk-Forge . 有关更高级的扩展,请随时通过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”( 源代码实时演示 ),它将“报告的问题”存储到数据库中,然后在模型上将它们显示为3D注释: 伪造数字孪生

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

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