InstanceTree 在查看器的移动版本中不可用 [英] InstanceTree unavailable in the mobile version of the viewer

查看:29
本文介绍了InstanceTree 在查看器的移动版本中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个函数需要我在桌面浏览器中工作的模型的 instanceTree.

I have a function who require the instanceTree of my model who works in the desktop browser.

instanceTree = viewer.model.getData().instanceTree;
dbIds = getAllDbIds(instanceTree);

但是在查看器的移动版本中,由于某些原因,getData() 中的 instanceTree 似乎丢失了.

But in the mobile version of the viewer, the instanceTree from getData() seems to be missing for some reasons.

您知道在移动查看器中访问 instanceTree 的方法吗?或者是否可以在查看器中指定一个选项以允许移动版本访问它?

Do you know a way to access the instanceTree in the mobile viewer ? Or is it possible to specify an option in the viewer to allow the mobile version to have access to it ?

我在查看器的 v6 版本

I'm in the version v6 of the viewer

我在 v7 中尝试过,但结果相同.

I tried in the v7 but it's the same result.

谢谢

推荐答案

当您无法在移动设备上访问模型的对象树时,您可能会遇到 Forge 查看器的内存限制,您可以尝试通过将 memory.limit 配置属性显式设置为零来绕过这些:

When you're unable to access the object tree of a model on a mobile device, you're likely hitting memory limits of the Forge viewer, and you can try to bypass those by explicitly setting the memory.limit config property to zero:

viewer = new Autodesk.Viewing.Private.GuiViewer3D(
    document.getElementById('viewer'),
    { memory: { limit: 0 } }
);

这篇关于InstanceTree 在查看器的移动版本中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆