APIObject.IsReadOnly
Description:
Identifies if the object is read-only or modifiable.
Identifies if the object is read-only or modifiable.
public virtual bool IsReadOnly { get; }
Document project = uiApplication.ActiveUIDocument.Document;
Settings settings = project.Settings;
TaskDialog.Show("Revit","Categories: " + settings.Categories.IsReadOnly.ToString());