单击模态浏览器按钮 - 显示模态面板中的空数据

On click of Modal Browser button - Showing empty data from modal panel

我正在根据来自 Forge 查看器的 sourceURNFile 渲染 Revit 3D 模态。

用例:

点击模态浏览器后,我们无法查看任何模态浏览器信息。

请建议我们是否需要设置任何设置配置来呈现模态浏览器数据。

我已附上截图以供参考。 screenshot

从查看器工具栏的奇怪位置来看,CSS 布局似乎有问题。模型浏览器可能实际上填充了数据,但它只是折叠了。试试inspecting the HTML of the Model Browser and see if it has any content. If it does, you might want to check and fix the CSS. Another way to test if this is a CSS issue would be to upload your Revit model to another Forge application, for example, https://viewer.autodesk.com,看看是否有同样的问题。

如果布局不是问题,请尝试检查 Revit 模型是否有任何树(某些类型的输入文件可能没有任何 tree/hierarchy,但 Revit 模型应该有)。在您的 Web 应用程序中,打开浏览器开发工具并尝试以下命令:

let tree = NOP_VIEWER.model.getInstanceTree();
let root = tree.getRootId();
tree.enumNodeChildren(root, console.log, true);

实例树数据结构是模型浏览器中显示的。如果实例树在您的应用程序中不可用,则可能存在另一个问题。在这种情况下,我建议您向我们发送电子邮件至 forge (dot) help (at) autodesk (dot) com,并在可能的情况下提供所有详细信息,包括。源代码和 Revit 模型,这样我们就可以调试它了。