WorksetTable
Description:
A table containing references to all the worksets contained in a document.
A table containing references to all the worksets contained in a document.
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.
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.
public class WorksetTable : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| GetActiveWorksetId() | WorksetId | Returns the active workset's WorksetId. |
| GetWorkset(Guid) | nullNothingnullptr | Returns the workset from a input Guid. |
| GetWorkset(WorksetId) | nullNothingnullptr | Returns the workset from a input WorksetId. |
| IsWorksetNameUnique(Document, String) | bool | Checks if the given workset name is unique in the document. |
| RenameWorkset(Document, WorksetId, String) | None | Renames the workset. |
| SetActiveWorksetId(WorksetId) | None | Sets the active workset. |
| Name | Return Type | Description |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |