// 监听选中事件
this.obvApi.addEventListener(
OBV.ViewerEventTypes.V3dSelectionChangedEvent,
async(event) => {
// 获取选中的节点数组
const selections = event.nodeIdArray
// 将nodeId转换成obvId,注意返回的是一个对象数组
const obvIdArray = this.obvApi.getObjectIdByNodeIds(selections)
}
)