Document.SaveAsCloudModel Method cannot be used when current document is already in cloud

Document.SaveAsCloudModel Method cannot be used when current document is already in cloud

ptranU2KHX
Advocate Advocate
390 Views
4 Replies
Message 1 of 5

Document.SaveAsCloudModel Method cannot be used when current document is already in cloud

ptranU2KHX
Advocate
Advocate

Hi everyone,

 

I am trying to use the SaveAsCloudModel method to upload my project to the ACC platform. However, the problem is that this method does not work if the project is already in the cloud. I do not want to delete the project manually before uploading it by API because I doubt that this action could break some workflow related to the cloud or workshare. Therefore, I wonder if there are any solutions to overwrite the project in the ACC platform. 

 

Thank you.

0 Likes
391 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

Im sure there are ways to detect whether the model is already a cloud model or not, so you could simply apply those and decide appropriately before calling SaveAsCloudModel.

  

The fact that it does not work on a model that is already in the cloud is intentional and clearly documented:

  

https://www.revitapidocs.com/2024/c72daf7a-43da-a480-d093-e3d6a96d9a76.htm

        

saveascloudmodel.png

      

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

ptranU2KHX
Advocate
Advocate

@jeremy_tammik thanks for your response.

 

I totally understand and if you noticed, the title of this post is exposed from the Revit SDK document.

I'd like to ask for a solution that helps overwrite the existing document in the ACC platform.

0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

The appropriate place to submit such a wish is the Revit Idea Station. Whenever you require a new or enhanced Revit product or Revit API functionality, the Revit Idea Station is the place to go. Please search there for a corresponding wish list entry for the suggested functionality and add your comments to it, or create a new one, if none already exists:

  

https://forums.autodesk.com/t5/revit-ideas/idb-p/302

 

Tag it as an API wish:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent/label-name/api

 

Ensuring that a wish gets as many votes as possible helps underline its importance to you and the rest of the developer community. The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements. The Revit development team looks there. Your comment here in the discussion forum might be overlooked. Thank you!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 5

ptranU2KHX
Advocate
Advocate

@jeremy_tammik it seems the API does not support my intent currently. Thank you.

0 Likes