How does forge load multiple models?

I load one model on the basis of loading another model with loadmodel, and find that it overlays the first model directly, and the two overlap.
how should I set its load location? Or is it right for me to load like this?

Aug.27,2021

this has been answered to you in the WeChat group. The condition for using Global Offset alignment is that the three models are the same coordinate origin in the Revit document, and if the alignment of the model is from the origin to the origin, I hope it will be helpful!

For

code, please refer to https://stackoverflow.com/a/5.:

var models = [
  '123.svf',
  '123.svf'
];


function _onGeometryLoaded( event ) {
 if( urns.length <= 0 ) {
     viewer.removeEventListener(
       Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
       _onGeometryLoaded
     );
     return;
 }

 viewer.loadModel( urns[0], { globalOffset: event.model.getData().globalOffset } );
 urns.splice( 0, 1 );
}

viewer.addEventListener(
 Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
 _onGeometryLoaded
);

viewer.loadModel( urns[0] );
urns.splice( 0, 1 );
Menu