BIM360 Docs set generateMasterViews
to true
by default, so no need to do that with BIM360 via Forge Model Derivative API (Not Data Management API).
The viewer of BIM360 is called BIM360 Viewer which is built on the top of the Forge Viewer, but not all features of Forge Viewer are included in BIM360 Viewer. (See BIM 360 Viewer vs Forge Viewer)
Back to your question,
Could you try to load your models that you cannot see the rooms with this viewer code?
var options = {
env: 'MD20Prod' + (atob(urn.replace('urn:', '').replace('_', '/')).indexOf('emea') > -1 ? 'EU' : 'US'),
api: 'D3S',
getAccessToken: getForgeToken
};
if (LMV_VIEWER_VERSION >= '7.48') {
options.env = 'AutodeskProduction2';
options.api = 'streamingV2' + (atob(urn.replace('urn:', '').replace('_', '/')).indexOf('emea') > -1 ? '_EU' : '');
}
Autodesk.Viewing.Initializer(options, () => {
viewer = new Autodesk.Viewing.GuiViewer3D(document.getElementById('forgeViewer'));
viewer.start();
var documentId = 'urn:' + urn;
Autodesk.Viewing.Document.load(documentId, onDocumentLoadSuccess, onDocumentLoadFailure);
});
function onDocumentLoadSuccess(doc) {
const root = doc.getRoot();
const viewables = root.search({'type':'geometry', 'role': '3d'});
console.log('Viewables:', viewables);
const phaseViews = viewables.filter(v => v.data.name === v.data.phaseNames && v.getViewableRootPath().includes('08f99ae5-b8be-4f8d-881b-128675723c10'));
console.log('Master Views:', phaseViews);
viewer.loadDocumentNode(doc, phaseViews[0], { skipHiddenFragments: false }).then(model => {
// any additional action here?
console.log({
'LMV version': LMV_VIEWER_VERSION
});
});
}
function onDocumentLoadFailure(viewerErrorCode) {
console.error('onDocumentLoadFailure() - errorCode:' + viewerErrorCode);
}
ref: https://github.com/yiskang/forge-viewhubmodels-nodejs-svf2/blob/main/public/js/ForgeViewer.js