BeforeExecutedEventArgs Class


The event arguments used by AddInCommandBinding's BeforeExecuted event.

Namespace: Autodesk.Revit.UI.Events
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2014

Syntax

C#
public class BeforeExecutedEventArgs : CommandEventArgs
Visual Basic
Public Class BeforeExecutedEventArgs _
	Inherits CommandEventArgs
Visual C++
public ref class BeforeExecutedEventArgs : public CommandEventArgs

Remarks

This event is cancellable. If your callback sets the Cancel property to true, the command will not execute.

Inheritance Hierarchy

SystemObject
  SystemEventArgs
    Autodesk.Revit.DB.EventsRevitEventArgs
      Autodesk.Revit.UI.EventsCommandEventArgs
        Autodesk.Revit.UI.EventsBeforeExecutedEventArgs

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →