Comparing 2D and 3D model in single Forge viewer - autodesk-forge

I am new to Autodesk Forge Viewer. I want to achieve something like this but using splitScreen Extension or in single viewer. Is it possible to do it? I am using Angular component Forge Viewer 7.

Unfortunately the splitscreen extension only supports synchronized navigation between the subscenes - that is you can only see different models in the subscenes from the same view/perspective.
Also see this sample here to achieve synchronized view in two separate viewers.

Related

Questions about Autodesk Forge Viewer API

I couldn't find Forge Viewer API demo site and don't know what it looks like. I appreciate it if you have some experience using it and answer questions below.
Can you put markup comments on 3D models easily?
When you update comments, are they automatically saved right after you click some update button?
Can you delete 3D model data easily?
Is it mandatory to upload 3D model data to the Autodesk cloud server when you use the Forge Viewer? I don't want to put design data outside of my service but want to see 3D model on a browser.
You can upload any model and check with Viewer through viewer.autodesk.com
We have a few options for markups on documents. this blog might be helpful. You can also take advantage of sprites and textgeometry for labeling your models
Depending on the method you'll need to implement an algorithm to save, store and load your markups.
The data you see with Viewer is the SVF(2) generated by a translation from a source file. To modify the source file, you'll need to run a Design Automation job.
You need to upload your models to a bucket in order to trigger a translation, generating an SVF(2) that can be rendered with Viewer (refer here).
Formats like gltf, pdf, and dwf can be loaded without the need for translations.

2d Sheets in Forge Viewer

We are showing Autodesk Revit models in Forge Viewer that have 3d views and 2d views. However, only the 3d view is showing in the Forge Viewer and there is no button available for us to navigate to the 2d view.
Do we need to add an extension to enable display of 3d views + 2d sheet views in Forge Viewer?
We need a toggle like what exists in the Fusion Viewer
I found several useful answers to this question of yours searching the Internet
for forge viewer revit 2d sheet.
Two of the answers providing background information and solutions for this are right here on StackOverflow:
Viewing Revit floor plans (2D views) in the Forge Viewer
Autodesk Viewer: Suggestions for 2D view of floor view
The final answer by Mikako Harada to the latter of these two suggests:
If you have access to the RVT model within Revit on the desktop, you can use the user interface to choose the views you wish to include, also discussed by The Building Coder:
Selecting Views to Publish Revit Project on A360
Select Rooms and Views to Publish to the Cloud

Mass models from FormIt do not render in Autodesk Viewer

Autodesk Viewer doesn't seem to render Mass models that were created in FormIt and converted to RVT. I can only see the level delimiters.
I've tried both https://viewer.autodesk.com/ as well as a basic viewer app I built using the Forge tutorials. This is an important part of a system that I'm trying to put together using a few of the Forge APIs.
If Mass type elements cannot be seen in the Viewer, is there a modification I could do using Design Automation v3 that would make the models visible?
Per Eason's advice I added the 3D view to the view set and that enabled the model to fully render in the Autodesk Viewer. This config option can be found under Collaborate->Publish Settings. All models that I imported from FormIt started off with all their views deselected in the view set.

How to implement a Forge Autodesk model-aggregating viewer?

I'm currently doing an internship in a company specialized in BIM. My mission so far consists in implementing a Forge Autodesk viewer, suited for the aggregation and the display of multiple models. I've managed to code a working viewer, and to find a supposed way to aggregate models, but I can't understand how to make them work together.
I've already implemented a viewer, following the Forge Autodesk tutorial, and found on the Forge Autodesk blog an article about viewing multiple models with a code I'm trying to integrate to my viewer, at this point unsuccessfully.
The viewer I implemented : http://learnforge.autodesk.io/#/
The supposed way to display aggregated models : https://forge.autodesk.com/blog/supporting-multiple-models-new-modelstructurepanel
I should be able to select and display several loaded models in the same viewer (for example a model for a building and a model for the pipe network). However, I can't figure out how this script has to be added to my viewer.
I've already tried to contact the author, but he answered me he was not working with Autodesk anymore, and told me to ask the Forge support about my issue.
Thanks in advance !
Basically in simpler terms to aggregate models one will need to load them respectively:
viewer.start(model1URL, options); //first model
...
viewer.loadModel(model2URL, options) //second model
... //more models
See a simple live sample here
As was mentioned in Philipe's article you will need to subscribe to different events as opposed to single model like AGGREGATE_SELECTION_CHANGED_EVENT, Autodesk.Viewing.AGGREGATE_ISOLATION_CHANGED_EVENT, Autodesk.Viewing.AGGREGATE_FIT_TO_VIEW_EVENT etc when working with multiple models.
And starting from Viewer v6 the built-in model browser deals a lot better with multiple models and almost covers the functionality described in the article - you can look into the code sample there and come up with your own extension:

Autodesk Forge messed up view

We are using the Autodesk Forge model derivative and viewer API's for sharing Revit models with our customers.
This works very well for almost all our Revit models. But currently we have 2 Revit models which use the same template, and with those 2 models the Forge viewer does not render these correct. It looks like we get some kind of exploded view, materials are not on the correct place etc (see images).
We assume it has something to do with the Revit template, but we cannot find it. Any suggestions?
Revit
Forge
As a suggestion, on Revit, go to publish settings and confirm the names of the 3D selected to be extracted. On Viewer, ensure you're showing the same view, you can see the name where you load a specific viewable.
I have found a workaround, it looks like the problem was the cars which I was using in the model. These were Revit families where a DWG import was used.
When removing the cars from the model all other materials where rendering fine in the Forge Viewer. I sended the model also to Forge support and hoping for a solution so I can use the cars again.