Reputation: 87
I have followed the tutorials found here and it is working (with smaller models). Except when uploading a 3D .dwg file containing (11) 3D solids, the file is being rendered in the 2D viewer. Anyway I can control this?
Note that the .dwg is AutoCAD 2015... is it possible that 2015 files are not supported in the 3D viewer?
Also... I have the opposite problem with Revit files. 3D renders properly, but I don't see how to access the 2D sheets.
Upvotes: 0
Views: 231
Reputation: 2024
When your file has multiple views, Revit usually has some 3D view and multiple 2D sheet, you can specify which view you want to be Rendered in Forge Viewer. For the sample you are using, you can check the file forgeviewer.js, and within the function onDocumentLoadSuccess(), the 1st parameter of the following code line actually control which view will be actually rendered by Forge Viewer, try to change to another view to see result. Hope it helps.
viewerApp.selectItem(viewables[0].data, onItemLoadSuccess, onItemLoadFail);
Upvotes: 1