How to use the BIM 360 Web Viewer (Autodesk Forge) - autodesk-forge

How to use the BIM 360 Viewer mentioned on this article (https://forge.autodesk.com/blog/bim-360-viewer-vs-forge-viewer)?
I tried to find on the autodesk forge documentation, but didn't get anything.
I'm already use the "normal" viewer on my application.

The BIM 360 Viewer is not for 3rd parties and is only used inside BIM 360, but it's built on the public Forge Viewer and apart from a couple of BIM 360 specific functionality the difference in behaviour would come from the profile settings used and the extensions loaded - as also mentioned in the article you pointed out.
You said that the issue seems to be with positioning/orienting when loading multiple models. By default, the Viewer automatically sets placementTransform and globalOffset to bring the models to the center, but you can override that when loading a model, see
https://forge.autodesk.com/blog/loading-multiple-models-forge-viewer-v7
Hopefully, using that should help solve the problem.

Related

View Recap Pro Projects in Forge Viewer

I have just discovered a new function that I have been waiting for for a very long time.
It is now possible to publish Recap Pro projects to the cloud for viewing and annotating. Demo
if I have seen it correctly , its atm only possible in BIM360 Docs, but here the Forge Viewer is used.
Now my question:
When will this function be made available to me as a developer?
BIM 360 Docs is built on top of the Forge Viewer, it should be already available for you to translate the model and display it in your own application.
Something you might want to try is to upload the RCP file to BIM 360 and then get the URN from there to pass it to your custom made viewer, so it takes care of the needed setup for translation.

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.

Use Forge to Access Change Report from BIM 360

Is it possible to use Forge with some BIM 360 API to gain access to the changes in a model from one version to the next?
Unfortunately, there is no API available for doing BIM360 model comparison on Forge currently. However, here are two workarounds you might be interested in:
Compare changes via Forge Viewer: https://forge.autodesk.com/blog/comparing-versions-viewer
Dump changes via Revit Addin, and then integrate its results with Forge.
What you can do though is to leverage Webhook to get notified when a new version is “upserted” to the Data Management API. See docs here:
Official Doc: https://forge.autodesk.com/en/docs/webhooks/v1/tutorials/create-a-hook-data-management/
Sample Code: https://forge.autodesk.com/blog/webhooks-and-bim-360-c

Detail in forge viewer vs A360

I made a query about this previously but with further investigation I still have a problem. The two screenshots show the same component in A360 and in our Forge viewer. The behaviour in A360 is what we want with only the external geometry of the component visible. This used to be the case in our webapp but a change made to the Forge viewer at some point means all the detail in the component is now visible, including internal details. How can we replicate the behaviour we see in A360 in our forge viewer?A360
What you need to do is to force The viewer at startup using
options.isAEC = false
This will make the Viewer go back to the Highlight view that A360 is using at the moment.

Forge Viewer in BIM 360 Teams

First of all, I really love the work you guys have done with the integration of the Forge Viewer in BIM 360 Teams! Kudos!
To my question:
I want to configure the Forge Viewer that displays my model when I click on my specific project in Teams.
Examples: Let's say I wanted to edit some CSS, or add an extension.
My understanding is that both the Forge Viewer and BIM 360 Teams has open API and that I therefor can be able to modify as per my request?
Kindly let me know.
If I read your question correctly, you want to customize the BIM 360 Team webpage directly. This is not possible.
The Viewer in BIM 360 Team is a specific implementation of the Forge Viewer. You cannot customize it (e.g. via CSS), or load extensions into it. I.e. BIM 360 Team does not currently expose any API that allows you to directly customize the BIM 360 'user interface'.
However, you can use the Autodesk Forge APIs to create your own webpage that can list the files in a user's BIM 360 Team account (Data Management API) and allow them to be displayed in your own Forge Viewer implementation, and customize the Viewer behavior as you need..
To understand how to navigate the BIM 360 Team project/folder structure, take a look at this tutorial. To list the contents of a folder, use this API. Basic Viewer customization is covered in the Viewer tutorials.
If that is what you want, if you explain what specific Viewer customizations you need, then we should be able to point you to a code snippet or sample that demonstrates it.