Issue of work collaboration using revit api

Issue of work collaboration using revit api

Jiaxi.Li
Alumni Alumni
721 Views
3 Replies
Message 1 of 4

Issue of work collaboration using revit api

Jiaxi.Li
Alumni
Alumni

Hello experts,

 

I have a customer that have some problems when they use revit api for their own developments.

 

1. It is very slow to open a central model create by 'WorksharingUtils.CreateNewLocal()' for the first time

They developed a plugin on web, to create a central model using this api. They have found that when open this model for the first time, it will always be time consuming, afterwards it will be back to normal. Any idea why this will happen?

 

2. It shows error message "Unable to close all open transaction phases!" when they use 'SynchronizeWithCentral()' when they tried to synchronize the central model using their plugin on Revit.

 

Thank you for watching, any recommendations will be appreciated 🙂

0 Likes
Accepted solutions (1)
722 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

I have asked the development team what they can say about item 1.

  

Regarding item 2, I suggest you share a complete minimal reproducible case for the development team and others to take a look at:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

  

Maybe something needs to be fixed; it could be either internal or in your code. Depends on what you are doing, and how.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

Thank you for your patience. The development team reply:

 

  1. CreateNewLocal API will copy the central model to local, which will take much time depending on the model size and network bandwidth.
  2. SynchronizeWithCentral API should not be called when there is an open transaction. Otherwise, it fails and shows the error message.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 4

Jiaxi.Li
Alumni
Alumni

Thank you Jeremy!

0 Likes