Revit 2025 API
Workset |
Sets a group of user-created worksets to close.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void Close( IList<WorksetId> worksetsToClose )
Public Sub Close ( worksetsToClose As IList(Of WorksetId) )
public: void Close( IList<WorksetId^>^ worksetsToClose )
member Close : worksetsToClose : IList<WorksetId> -> unit
Parameters
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
Calling this method on a configuration created with options other than WorksetConfigurationOption.CloseAllWorksets will set these
worksets to be explicitly closed. If all worksets are set to close, the configuration will be unchanged. Worksets other than the inputs are unaffected.
See Also