because of the requirements of the project, I just came into contact with forge.
currently I have converted the rvt model to svf format and exported it offline to my local,
then load the model through viewer.loadModel ("static/model/xxx/Resource/_/_3D_ 1562931). Since the model files provided by the customer are scattered, you need to call viewer.loadModel again to load multiple similar models.
then here comes the problem,
- after loading, on the instance of viewer (constructed by Autodesk.Viewing.Private.GuiViewer3D), accessing viewer.model, can only get the first model, but not all the models that have been loaded. For this problem, you can record all models by callback after loading successfully. But do ForgeViwer officially provide an interface to manage multiple models?
- in the case of multiple models, the "Model browser" function of the lower toolbar can only display the information of the first model. Is there a way to add a layer of model selection to the model part tree in the case of multiple models
- the parts selected by other models cannot be obtained through viewer.getSelection, but only the selected parts of the first model can still be obtained