Workset
Description:
Represents a workset in the document.
Represents a workset in the document.
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.
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.
public class Workset : WorksetPreview
public Workset GetActiveWorkset(Document doc)
{
// Get the workset table from the document
WorksetTable worksetTable = doc.GetWorksetTable();
// Get the Id of the active workset
WorksetId activeId = worksetTable.GetActiveWorksetId();
// Find the workset with that Id
Workset workset = worksetTable.GetWorkset(activeId);
return workset;
}
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Create(Document, String) | Workset | Creates a new workset. | |
| Dispose() | None | Releases all resources used by the | WorksetPreview |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsEditable | bool | Whether the workset is editable. | |
| IsOpen | bool | Whether the workset is open (rather than closed). | |
| IsVisibleByDefault | bool | Whether the workset is visible by default. | |
| Kind | WorksetKind | Kind of the workset. | |
| Id | WorksetId | Id of the workset. | WorksetPreview |
| IsDefaultWorkset | bool | Whether the workset is the default one. | WorksetPreview |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. | WorksetPreview |
| Name | string | Name of the workset. | WorksetPreview |
| Owner | string | User name of the workset. | WorksetPreview |
| UniqueId | Guid | UniqueId of the workset. | WorksetPreview |