Document and SynchronizeWithCentral

Document and SynchronizeWithCentral

o_s_
Contributor Contributor
1,074 Views
2 Replies
Message 1 of 3

Document and SynchronizeWithCentral

o_s_
Contributor
Contributor

I am working with Revit and a document is Workshared.
I am using the following code to update the .rvt file on ACC:

SynchronizeWithCentralOptions synchronizeOptions = new SynchronizeWithCentralOptions();
synchronizeOptions.SetRelinquishOptions(new RelinquishOptions(true));
_document.SynchronizeWithCentral(new TransactWithCentralOptions(), synchronizeOptions);

 

This part of the code executed successfully, but after opening Autodesk Construction Cloud, the file version remains old and no changes are visible.

Please share an idea if you have one, what could be wrong, my goal is to update the model in ACC.
Thank you!

0 Likes
Accepted solutions (1)
1,075 Views
2 Replies
Replies (2)
Message 2 of 3

o_s_
Contributor
Contributor

Hello @jeremy_tammik, do you have any ideas related to this problem?

0 Likes
Message 3 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @o_s_ ,

 

Have you evaluated the optimal manual workflow to achieve the required functionality directly through the Revit UI?

From my understanding, Revit Desktop requires users to explicitly publish the model to reflect changes in Autodesk Construction Cloud (ACC). For cloud worksharing models, users must click "Publish Latest" to update the model in ACC Docs. 

UI: https://help.autodesk.com/view/RVT/2024/ENU/?guid=GUID-A2444193-FCE8-4219-A590-62CA2B8B5C5D


To replicate this via the API, after performing a SynchronizeWithCentral operation, you need to use the Data Management API to publish and update the model in ACC.

API: https://aps.autodesk.com/en/docs/data/v2/tutorials/publish-model/


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes