WorksetTable
A table containing references to all the worksets contained in a document.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.WorksetTable
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class WorksetTable : IDisposable
The WorksetTable type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Methods
Name
Description
Public Method
Static Member
CanDeleteWorkset
Indicates if a workset can be deleted.
Public Method
Static Member
DeleteWorkset
Delete the specific workset.
Public Method
Dispose
Releases all resources used by the WorksetTable
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
Code Example
GetActiveWorksetId
Returns the active workset’s WorksetId.
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
GetWorkset(Guid)
Returns the workset from a input Guid.
Public Method
GetWorkset(WorksetId)
Returns the workset from a input WorksetId.
Public Method
Static Member
IsWorksetNameUnique
Checks if the given workset name is unique in the document.
Public Method
Static Member
RenameWorkset
Renames the workset.
Public Method
SetActiveWorksetId
Sets the active workset.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
There is one WorksetTable for each document. There will be at least one default workset in the table, even if worksharing has not been enabled in the document.