Autodesk forge autodesk forge viewer.js从6.6更新到7.1 findPropertyDbPath返回null

Autodesk forge autodesk forge viewer.js从6.6更新到7.1 findPropertyDbPath返回null,autodesk-forge,Autodesk Forge,根据文件 Document.getPropertyDbPath-使用Document.getFullPath(Document.getRoot().findPropertyDbPath()) 在7.1中 当Document.getRoot().findPropertyDbPath()和Document.getFullPath(Document.getRoot().findPropertyDbPath()时,我总是得到null 在6.6中 Document.getPropertyDbPath将返

根据文件

Document.getPropertyDbPath-使用Document.getFullPath(Document.getRoot().findPropertyDbPath())

在7.1中
当Document.getRoot().findPropertyDbPath()和Document.getFullPath(Document.getRoot().findPropertyDbPath()时,我总是得到null

在6.6中
Document.getPropertyDbPath将返回完整地址。


另外,我使用viewer.loadModel加载模型。

属性数据库路径特定于某个视图,因此您需要深入到子节点以获取路径,而不是
docRoot

const 3dViews = doc.getRoot().search({
                'type': 'geometry',
                'role': '3d'
});

3dviews[0].findPropertyDbPath() // get the db path of the first/default view


属性db path特定于某个视图,因此需要深入到子节点以获取路径,而不是
docRoot

const 3dViews = doc.getRoot().search({
                'type': 'geometry',
                'role': '3d'
});

3dviews[0].findPropertyDbPath() // get the db path of the first/default view


这应该在文档中。这应该在文档中。