Forge Viewer in BIM 360 Teams - autodesk-forge

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.

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.

Do you need a BIM360 license to acces BIM360 files

For a school project I need to display a BIM360 model in the forge viewer. I can't find clear information on whether or not I need to have a BIM360 license to do that. Can I use the API to get the model without my own BIM360 account? (My mentor has the BIM-model in his account)
Also I read that the forge viewer uses the data-derivative API to convert to a it's own format, this uses 0.2 credits every time. Can's I just convert the model once and then store it somewhere?
Thanks,
DrawMen
For you to be able to see and access the model in BIM 360, the owner will have to share it with you.
This forum post seems to indicate that you would indeed need a BIM360 license.
https://forums.autodesk.com/t5/bim-360-support/do-people-need-a-bim-360-design-license-to-use-docs-online/td-p/9573036#:~:text=Anyone%20who%20needs%20to%20review,license%20is%20not%20a%20BYOS
There is a way to share files with publc links, but I don't think this will give you access to a forge viewer. (only the file)
https://bim360basics.com/2020/04/22/public-links-share-bim-360-files-with-anyone/
That being said, depending on the type of file you are trying to view. A lot of Autodesk product now have a feature called "shared view" which let you create a 3ds view for the forge viewer that can be shared with anyone with a URL. It might be worth asking your mentor if he would be willing to create a shared view for you to use.

How to use the BIM 360 Web Viewer (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.

How to query for TimeLiner data from Forge API?

I used the TimeLiner plugin for Navisworks to create a 4D timeline. I'm now trying to grab this TimeLiner data from the Forge API. When I log into BIM360, I'm able to load a model into the viewer and see all TimeLiner information within a browser. However, I don't see how I can accomplish this with the Forge API. Is there an available API for this? Or is there another way to grab this info?
Unfortunately, the Timeliner properties are not extracted by Forge service (which BIM 360 is running on), and also some other properties. This blog tells in detail:
https://forge.autodesk.com/blog/updates-navisworks-nwd-translation-engine-coming
Currently, we do have an advanced option to override default configurations to tell NWD/NWC translator if it needs to translate Timeliner properties. BUT, this option is about Forge Model Derivative API ONLY.
While in BIM360 Docs UI, there is no any plan to expose options to let users override default configurations when they upload files. So for now, users uploading NWD/NWC files to BIM 360 Docs will lose Timeliner properties. Consequently, you will have to open those files inside Navisworks to view Timeliner data or take advantage of the Navisworks API to extract the data inside Navisworks. We apologize for the inconvenience.
However, we have legged a wish BIMPLT-698 with BIM360 engineering team to evaluate the possibility of adding options for end-user when they upload the model files. You're welcome to track the updates in the future via sending an email quoting this wish id to the Forge support channel.
Note. Triggering your own translation job to override your desired translation configurations via Forge Model Derivative API on files uploaded to BIM360 will charge you for cloud credits. You will have to consider the extra costs if you want to do so, and see here for the pricing: https://forge.autodesk.com/pricing

Forge/BIM360: Is there still no way to get at BIM360 Docs custom attributes on files?

I'm trying to read the custom attributes, which are defined at the folder level in BIM360 and then applied to individual file versions.
But I can't find any endpoint that seems to expose them.
Is it still not possible to read/write them?
(I see an Autodesk forum post from April that seems to say no, but I was hoping that they would be visible via the Forge APIs by now?).
Thanks,
Matt
AFAIK, the information of folder/file is provided by Forge Data Management API, this API is used as a common access to many different Autodesk SAAS app like A360 Personal, BIM 360 Team, Fusion Team (formerly known as A360 Team), BIM 360 Docs.
Unfortunately, since the custom attributes are specified only for BIM360 Docs(correct me if I am wrong), so the Folder/Item API of Forge Date Management does not provide that information yet.