BIM 360 DATA CONNECTOR SOURCE CODE IN C SHARP - autodesk-forge

We are developing a web application with C Sharp as backend, We trying to integrate BIM 360 data connector in our application, For which, can anyone share a sample BIM 360 data connector source code in C#?

Check this PDF, has code for .NET Core and .NET Framework:
Connect to Fusion Team & BIM 360 data

The material Leandro shared has been the learning tutorial at:
https://learnforge.autodesk.io/#/tutorials/viewhubmodels
which introduces how to build application of Forge to connect BIM 360 model documents step-by-step.
While my understanding is what you are looking for is on how to use Data Connector API in .NET. As far as I know, our Forge team has not sample in .NET, but has samples in Node.js (which is also based on the skeleton of learning tutorial above)
https://github.com/Autodesk-Forge/forge-bim360-data.connector.dashboard
In addition, we also provided Postman collection for Data Connector API:
https://github.com/Autodesk-Forge/forge-bim360-data.connector.api-postman.collection
In Postman, code snippet in various languages (including .NET)) is available. It might be a reference for you to build the final application:
https://learning.postman.com/docs/sending-requests/generate-code-snippets/

Related

How can I use Audodesk Forge Viewer to view 3d translated model in Autodesk Doc

I am developing My own project to view model from file in Autodesk Docs, but I am really confuse, How should I start from? for now I use 2 legged Authentication and got and access denied.Can someone help me to summarize overview steps to finally my custom viewer can view it?
Overall steps to view forge model in forge viewer.
I'd suggest to start with one of our tutorials, for example:
Simple Viewer - this tutorial guides you through the development of an application that manages the files of its users (designs are stored in a custom OSS bucket owned by the application)
Hubs Browser - this tutorial might be better for your use case as it builds an application that can access designs of its users in other APS applications such as Autodesk Docs, Autodesk Construction Cloud, or BIM360

Can an Inventor assembly be translated into a Revit project or family with Autodesk Forge?

I need to translate Inventor assemblies (iam) in some cases into Revit projects (rvt) and in other cases into Revit families (rfa). Does anyone know if this is possible using either the Forge model derivative api or the Forge design automation api?
According to this page https://forge.autodesk.com/en/docs/model-derivative/v2/developers_guide/supported-translations/ it's not possible, but the page is a year old!
Thanks.
The ModelDerivative API does not allow to export in RVT or RFA.
Using the DesignAutomation API you can run an Inventor add-in to do this translation.
Take a look at this link Design Automation Inventor with Revit Core Engine
You will find a demo of the Inventor assemblies translation into RFA and the GitHub link to the source code of this project.

Resources on BIM 360 Viewer extensions & dashboard creation

I was following the .NET online training playlist on Forge by Augusto Goncalves. This playlist has the "Forge Online Training, April 2021 Day 3 - Viewer extensions & dashboards (.NET)" session missing/private. Does anyone has any resources on this topic?
Also, I'm totally new to Forge. Can you work with Forge using .NET (Visual Studio) without having to learn Node.js and Postman especially for BIM 360?
https://www.youtube.com/watch?v=yAa0VvLRtvI&list=PLJbGSvNUq6VAaZL57IzDLvmo5NLdQreDe&ab_channel=PetrBroz
Yeah, no need to learn node.js and postman. Here are some resources using .NET:
https://www.youtube.com/watch?v=giEvdvtpj44&list=PLJbGSvNUq6VAaZL57IzDLvmo5NLdQreDe&index=4
https://learnforge.autodesk.io/#/environment/setup/net_3legged
https://learnforge.autodesk.io/#/environment/setup/netcore_3legged
The Postman steps are helping understand how to consume API calls to the Forge service, but it's unnecessary.

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

Interconnecting autodesk forge and Vault api

Currently I'm working on a project where i need to use forge viewer and vault APIs
The system i'm developing should get files from vault and display those in the forge viewer.
I couldn't find any guide or references on how to connect both API's to achieve my goal.
Vault and Forge are two different APIs. And currently, as I know, we have not integrate Vault file system with Forge services, which means the Vault files cannot be accessed in the role of users (while some other cloud products support such as BIM 360, Fusion 360, because they are built on Forge services as well)
So, you would need to use Vault API to get the files from Vault, and use Forge web service to upload and translate the file, in order to view the model in the Forge Viewer.
I am not sure if you have played with Vault API or Forge API. These are just some materials which might be useful:
Using the Vault API and View and Data API Together to Download and View
Assemblies
https://www.autodesk.com/autodesk-university/class/Using-Vault-API-and-View- and-Data-API-Together-Download-and-View-Assemblies-2015
This was delivered by our colleague in 2015 Autodesk University. At that time,
the technology of viewing model in the browser is called View and Data. The
basic workflow is similar to current Forge Viewer.
Vault APIs tutorials:
https://www.autodesk.com/developer-network/platform-technologies/vault
which contains the materials how to get started with Vault. As to the specific topics on downloading files, you can refer to the handout in the above AU class
Forge Viewer tutorials
https://forge.autodesk.com/en/docs/viewer/v6/tutorials/
And I also recommend the other step by step tutorial:
http://learnforge.autodesk.io/
Should you have any questions in the process, please feel free to pose the questions with autodesk-forge tag.