Subscribe to the DocumentWorksharingEnabled event to be notified when a document has become workshared.
Namespace: Autodesk.Revit.ApplicationServicesAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2015
Syntax
C# |
---|
public event EventHandler<DocumentWorksharingEnabledEventArgs> DocumentWorksharingEnabled |
Visual Basic |
---|
Public Event DocumentWorksharingEnabled As EventHandler(Of DocumentWorksharingEnabledEventArgs) |
Visual C++ |
---|
public: event EventHandler<DocumentWorksharingEnabledEventArgs^>^ DocumentWorksharingEnabled { void add (EventHandler<DocumentWorksharingEnabledEventArgs^>^ value); void remove (EventHandler<DocumentWorksharingEnabledEventArgs^>^ value); } |
Remarks
This event is raised when Revit has just enabled worksharing in the document.
Handlers of this event are permitted to make modifications to any document (including the active document), except for documents that are currently in read-only mode.