Revit 2026 API
ViewGet |
Returns the visibility settings of a workset for this particular view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public WorksetVisibility GetWorksetVisibility( WorksetId worksetId )
Public Function GetWorksetVisibility ( worksetId As WorksetId ) As WorksetVisibility
public: WorksetVisibility GetWorksetVisibility( WorksetId^ worksetId )
member GetWorksetVisibility : worksetId : WorksetId -> WorksetVisibility
Parameters
- worksetId WorksetId
- Id of the workset.
Return Value
WorksetVisibilityThe visibility of a workset for this particular view.
| Exception | Condition |
|---|---|
| ArgumentException | There is no workset with this Id in the document associated with this view. |
| ArgumentNullException | A non-optional argument was null |
The settings does not reflect the fact of whether a workset is currently closed or not.
See Also