本文介绍了Viewer v7.37 属性面板 setProperties() 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Viewer V7 7.37 PropertyPanle.setProperties() 无法加载.

Viewer V7 7.37 PropertyPanle.setProperties() can not be loaded.

let promise1 = this.viewer.getExtensionAsync("Autodesk.PropertiesManager");
promise1.then(function (propertiesManagerEx) {
    let panel1 = propertiesManagerEx.getPanel();
    panel1.setProperties = function (properties, options) {
      ...

这有什么影响吗?https://forge.autodesk.com/en/docs/viewer/v7/change_history/changelog_v7/7.37发布日期:2/18/2021属性面板:支持多选

Does this have any effect?https://forge.autodesk.com/en/docs/viewer/v7/change_history/changelog_v7/7.37Release Date: 2/18/2021Property panel: support multi-selection

推荐答案

是的,您的观察是正确的.现在 setAggregatedProperties 函数被调用.您也可以查看源代码:https://developer.api.autodesk.com/modelderivative/v2/viewers/7.37/viewer3D.js

Yes, your observation is correct. Now the setAggregatedProperties function is called. You can check in the source code as well: https://developer.api.autodesk.com/modelderivative/v2/viewers/7.37/viewer3D.js

为了避免任何问题,最好的办法是始终指定您的应用使用的查看器版本:https://adndevblog.typepad.com/cloud_and_mobile/2015/07/always-use-versioning.html(这是一篇很老的文章,因此查看者的 URL 从那时起发生了变化)

In order to avoid any issues, the best thing is to always specify the Viewer version your app is working with:https://adndevblog.typepad.com/cloud_and_mobile/2015/07/always-use-versioning.html(this is a very old article so the Viewer's URLs changed since then)

这篇关于Viewer v7.37 属性面板 setProperties() 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 07:11