I tried to implement your proposed solution with the “loadsubtreefrommodel” method.
But I always get this error when i call it on an empty scene: Uncaught (in promise) Error: Incompatible load types.
When i try to load the model on a scene which already has a loaded model (using the model property in the Webviewer constructor) this error does not happen.
What could be the reason for this?
Additionally, when I call the deleteNode function it actually deletes the nodes from the assebly tree (checked that with getNodeChildren) but it does not delete the nodes from the actual viewer? Do I have to call another function to trigger that?