Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Editable Status of workset to "No"

2 REPLIES 2
Reply
Message 1 of 3
MehtaRajesh
561 Views, 2 Replies

Change Editable Status of workset to "No"

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 



2 REPLIES 2
Message 2 of 3
jeremytammik
in reply to: MehtaRajesh

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

Message 3 of 3
MehtaRajesh
in reply to: jeremytammik

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







Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community