The problem of component selection in autodesk forge viewer Multi-Model loading

previous viewer versions of my multi-model loading overridden viewer.model to implement model switching and then other components called viewer.getSelection () to get the currently selected artifacts.
after the update of the current version, the viewer.model cannot be overwritten and the error will be"Do not set viewer.model";
is there any better way to solve the problem of selecting multi-model components?
can only use the Autodesk.Viewing.AGGREGATE_SELECTION_CHANGED_EVENT event to get the click events of multiple models?

Mar.30,2021

multiple model scenarios can only get the current selection set through viewer.getAggregateSelection () . Click must change to listen for Autodesk.Viewing.AGGREGATE_SELECTION_CHANGED_EVENT events

.
Menu