| Revit Preview Release API |
| WorksetTable..::..SetActiveWorksetId Method |
| WorksetTable Class See Also |
Sets the active workset.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since:
2015 Subscription Update
Syntax
| C# |
|---|
public void SetActiveWorksetId( WorksetId worksetId ) |
| Visual Basic |
|---|
Public Sub SetActiveWorksetId ( _ worksetId As WorksetId _ ) |
| Visual C++ |
|---|
public: void SetActiveWorksetId( WorksetId^ worksetId ) |
Parameters
- worksetId
- Type: Autodesk.Revit.DB..::..WorksetId
The workset Id.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | There is no workset in the document with this id. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |