Skip to content

UIControlledApplication.ViewActivating

Public Event

Subscribe to the ViewActivating event to be notified when Revit is just about to activate a view of a document.

Namespace: Autodesk.Revit.UI

Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public event EventHandler<ViewActivatingEventArgs> ViewActivating

Value

EventHandler. ViewActivatingEventArgs.

Remarks

This event is raised when Revit is just about to activate a view of the document.

Event is not cancellable. The ‘Cancellable’ property of event’s argument is always False. Your application is responsible for providing feedback to the user about the reason for the cancellation.

The document may be modified during this event.

The following API functions are not available for the current document during this event:

Exception InvalidOperationException will be thrown if any of the above methods is called during this event.

Another ViewActivated event will be raised immediately after view activating is finished.