Change Editable Status of workset to "No"

Change Editable Status of workset to "No"

MehtaRajesh
Advocate Advocate
826 Views
2 Replies
Message 1 of 3

Change Editable Status of workset to "No"

MehtaRajesh
Advocate
Advocate

Hello,

I need to change the Editable Status to "No" for selected workset.

I am able to get  status of Workset  as workset.IsEditable.

Also I am able to change the visibility of Workset for respected view as
view.SetWorksetVisibility(workset.Id, WorksetVisibility.Hidden);
OR

WorksetDefaultVisibilitySettings defaultVisibility = WorksetDefaultVisibilitySettings.GetWorksetDefaultVisibilitySettings(doc);

defaultVisibility.SetWorksetVisibility(workset.Id, false);

But I am not finding any way to change the Editable Status of Workset to "No".

Thanks in advance to all for helping me to resolve this issue.

Regards,
Rajesh 



0 Likes
827 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Rajesh,

 

You are completely correct, the workset IsEditable predicate is read-only.

 

In Revit 2015, the entire workset API is read-only.

 

Some read-write functionality was added in Revit 2015 R2:

 

http://thebuildingcoder.typepad.com/blog/2015/02/revit-2015-r2-and-the-read-write-workset-api.html

 

I hope this helps.

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 3

MehtaRajesh
Advocate
Advocate

Hi Jeremy,

Thanks for your quick response by providing valuable information.

I was planning to develop application to update Editable property of various Project Standards on selection of Multiple Revit Projects.
But since Autodesk has not provided the functionality, I will not be able to.

Is there any turn around to do this?

Thanks again for your kind help

Regards,
Rajesh







0 Likes