如何在属性表中显示获得的对象属性?

时间:2019-05-23 08:17:02

标签: autodesk-viewer

我正在开发一个属性面板,其中必须显示模型的属性。 我在this的帮助下获得了模型的属性。 我还使用this代码创建了一个属性面板。

我需要做的第一件事就是找出如何在属性面板中显示需要处理的对象的属性。 我想知道的第二件事,就是如何创建一个具有固定高度的窗口。

1 个答案:

答案 0 :(得分:1)

  

我需要做的第一件事就是找出如何在属性面板中显示需要处理的对象的属性。

let yourProperties;
viewer.model.getProperties(dbid, properties=> yourProperties = properties);
...
MyAwesomePanel.prototype.setProperties = function (properties, options, container) {
  Autodesk.Viewing.Extensions.ViewerPropertyPanel.prototype.setProperties.call(this, yourProperties, options, container); 
...
  

我想知道的第二件事是,如何创建具有固定高度的窗口。

已经在代码示例的注释中解释了您的上一个问题