Workset Class


Workset Class

Represents a workset in the document.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB WorksetPreview
Autodesk.Revit.DB Workset

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public class Workset : WorksetPreview

The Workset type exposes the following members.

Properties
Name Description
Public property Id Id of the workset.
(Inherited from WorksetPreview )
Public property IsDefaultWorkset Whether the workset is the default one.
(Inherited from WorksetPreview )
Public property IsEditable Whether the workset is editable.
Public property IsOpen Whether the workset is open (rather than closed).
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from WorksetPreview )
Public property IsVisibleByDefault Whether the workset is visible by default.
Public property Kind Kind of the workset.
Public property Name Name of the workset.
(Inherited from WorksetPreview )
Public property Owner User name of the workset.
(Inherited from WorksetPreview )
Public property UniqueId UniqueId of the workset.
(Inherited from WorksetPreview )
Top
Methods
Name Description
Public method Static member Create Creates a new workset.
Public method Dispose
(Inherited from WorksetPreview )
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
Worksets are a way to divide a set of elements in the Revit document into subsets for worksharing. There may be one or many worksets in a document. Each element in the document must belong to one and only one workset.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →