In the webviewer layouts on a dwg can be found using the sheetManager.
But is there a way to find out which layers are active on a sheet?
If I open 3D model space on a dwg and activate all layers, the webviewer shows all layers no matter what sheet it should be visible on.
I’m not too familiar with the layer implementation in the webviewer but I think the only way to achieve that would be to activate a particular sheet, then retrieve the nodeids for a given layer (
model.getNodesFromLayer) and check their visibility states. If they are all visible, the layer is active on the currently visible sheet.