Forge 查看器中聚合视图场景中的选择
Selection in aggregated view scenario in forge viewer
我正在尝试使用 getAggregateSelection(selection) 函数在多模型场景中 select 元素。此函数以前工作正常,但开始时出现以下错误:
"viewer3D.min.js:18 Uncaught TypeError: Cannot read properties of undefined (reading 'length') at viewer3D.min.js:18:1301021 at u.setSelection (viewer3D.min.js:18:1301094) at c.setAggregateSelection (viewer3D.min.js:18:1305012) at C.de.setAggregateSelection (viewer3D.min.js:18:638482) at <anonymous>:1:15"
getAggregateSelction 函数工作正常。
刚刚在我的一个示例中尝试了 setAggregateSelection
,它似乎工作正常。您确定输入参数的格式正确吗?应该是:
viewer.setAggregateSelection([
{
model: someModelInstance,
ids: [123, 456]
},
{
model: anotherModelInstance,
ids: [789]
}
]);
我正在尝试使用 getAggregateSelection(selection) 函数在多模型场景中 select 元素。此函数以前工作正常,但开始时出现以下错误:
"viewer3D.min.js:18 Uncaught TypeError: Cannot read properties of undefined (reading 'length') at viewer3D.min.js:18:1301021 at u.setSelection (viewer3D.min.js:18:1301094) at c.setAggregateSelection (viewer3D.min.js:18:1305012) at C.de.setAggregateSelection (viewer3D.min.js:18:638482) at <anonymous>:1:15"
getAggregateSelction 函数工作正常。
刚刚在我的一个示例中尝试了 setAggregateSelection
,它似乎工作正常。您确定输入参数的格式正确吗?应该是:
viewer.setAggregateSelection([
{
model: someModelInstance,
ids: [123, 456]
},
{
model: anotherModelInstance,
ids: [789]
}
]);