Can a workset be relinquished by administrator?

Can a workset be relinquished by administrator?

kuang_hf
Enthusiast Enthusiast
1,593 Views
6 Replies
Message 1 of 7

Can a workset be relinquished by administrator?

kuang_hf
Enthusiast
Enthusiast

Hi experts:

 

I have a question. Our team work on a central model in a file server. When some workset is borrowed by a user, and other wants to edit elements in that workset, the usual way is to ask the owner to relinquish the workset. But in some emergency case, the owner user is absent, and we want to get the ownership of that workset as soon as possible. Do we have a way, like a super user or administrator, to forcefully relinquish the workset? Or is there any API to do this?

 

Further more, can we have a refined permission control, that some workset can be only checked out by some specified user?

 

Thanks.

 

kuanghf

0 Likes
Accepted solutions (1)
1,594 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

Dear Kuanghf,

 

I am not aware of any specific API to achieve this.

 

I suggest you determine whether this can be achieved manually through the user interface first.

 

If not, the API will not help you either.


You should try one of the non-API Revit product support discussion forums instead to answer the non-API question:

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not...

The people there are much better equipped to answer your question than us programming nerds.

Please be aware that the Revit API hardly ever supports any functionality that is not also available in the user interface.

Therefore, if the UI does not support this, the API will probably not do so either.

I hope this clarifies.

Thank you for your cooperation and understanding.

Best regards,

Jeremy



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

Message 3 of 7

kuang_hf
Enthusiast
Enthusiast

Thank you, Jeremy.

0 Likes
Message 4 of 7

Troy_Gates
Advocate
Advocate
Accepted solution

Here is a quick trick that will allow you to release a workset, but all changes, not sync'd to the central by the user that owns the workset, will be lost...

 

Change your name in the Revit Options to the same name as the user that has the workset checked out, open a new local file from the central, and change the workset to uneditable and close the file.

 

Again, this will probably cause that user to lose any work that hasn't been sync'd back to the central.

0 Likes
Message 5 of 7

kuang_hf
Enthusiast
Enthusiast

Thanks for your workaround,  troygates.  I have also found that way just now. I hope Revit can provide more detail permission control later.

0 Likes
Message 6 of 7

NZhouSNYLF
Contributor
Contributor

factory disabled this workaround, (manually) need to do hard way by recreating central file, (automatically) just wonder if API is doable?

0 Likes
Message 7 of 7

jeremy_tammik
Alumni
Alumni

The API almost never provides functionality that is not present in the UI.

  

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