According to the following link (dated January 2017) Accessing centralized non-published revit model is not possible.
https://fieldofviewblog.wordpress.com/2017/01/26/c4r-and-forge-api-access/
The reason that I am asking again is according to the following link (undated) Forge can be used to publish the centralized non-published model. So, there is must be a connection between centralized model and Forge API.
https://developer.autodesk.com/en/docs/data/v2/tutorials/publish-model/
There are three places where a Revit model "sits" when using C4R: 1) user's desktop, 2) C4R database, and 3) Team or Docs storage. "synchronize with central" only updates #1 to #2. "publish" uploads #2 to #3. Forge API on the Forge developer page is about #2 to #3, i.e., publishing a centralized model to Docs. Forge API supports only Docs, not Team.
Side note: Revit 2018.3 supports Team and Docs. Revit 2019 supports Docs only.
Indeed Forge now supports BIM 360 Design (formerly Collaboration for Revit, C4R) models. It also supports model.publish and model.sync webhook events.
Related
Is it possible to save a workshared model to BIM360 as a workshared cloud model using Revit API and/or Forge API ?
I have multiple models that I wish to upload on BIM360, but from what I see the SaveAsCloudModel method that is currently available in Revit 2021 API and described in this post only works with non-workshared models. Is there any other method ?
According to Revit API Docs, this functionality has been added in Revit 2022 API
SaveAsCloudModel() now supports save of a new Revit Cloud Worksharing central model
The method:
Document.SaveAsCloudModel(Guid, Guid, String, String)
has been enhanced to support upload of local workshared file into BIM 360 Design as a Revit Cloud Worksharing central model.
In addition, the exception UnauthenticatedUserException is removed from the documented exceptions for this method.
Additional References
Similar question in Autodesk forum: Initiate cloud collaboration for a workshared model
The SaveAsCloudModel function is available since Revit 2019.2, and you can follow my code snippet shared here to activate the cloud worksharing:
https://thebuildingcoder.typepad.com/blog/2019/11/initiating-bim360-collaboration-and-linking.html
BTW, you need to install the Revit 2019.2 service package before coding.
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
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
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.
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.