vladp
vladp

Reputation: 17

Save a workshared model as a cloud model to BIM360

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 ?

Upvotes: 0

Views: 609

Answers (2)

Gangula
Gangula

Reputation: 7332

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

Upvotes: 1

Eason Kang
Eason Kang

Reputation: 7070

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.

Upvotes: 1

Related Questions