I would like to move the modelStructurePanel outside of the viewer container and into my custom sidebar. As stated in another post this is not recommended since it requires extra fixing of the css so that the content of the panel is displayed correctly. I think this is where my problem lies. My modelStructurePanel element is displayed in my custom sidebar only as a small text that reads ‘browser’.
In my html I added an element called ‘modelBrowserContent’ where the panel should go. For this I used the following Code:
const modelStructurePanel = new Autodesk.Viewing.UI.ModelStructurePanel(
document.getElementById('modelBrowserContent'),
'modelStructurePanel',
'Model Structure',
{}
);
modelStructurePanel.setVisible(true);
This is how the element is displayed
Does anyone know how to fix this so that the panel is actually showing the models tree-structure?
According to the other post some CSS is needed but I did not manage to display the tree.