Revit 2026 API
UIDocumentRequest |
Requests an asynchronous change of the active view in the currently active document.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void RequestViewChange( View view )
Public Sub RequestViewChange ( view As View )
public: void RequestViewChange( View^ view )
member RequestViewChange : view : View -> unit
Parameters
- view View
- The View.

Exception | Condition |
---|---|
ArgumentNullException | If the 'view' argument is NULL. |
ArgumentException |
|
InvalidOperationException |
|

This method requests to change the active view by posting a message asynchronously. Unlike setting the ActiveView property, this will not make the change in active view immediately. Instead the request will be posted to occur when control returns to Revit from the API context. This method is permitted to change the active view from the Idling event or an ExternalEvent callback.
The active view cannot be changed when:
- There is an open transaction in the currently active document.
- IsModifiable is true.
- IsReadOnly is true.
- ViewActivating, ViewActivated, or any pre-event (such as DocumentSaving) is being handled.
See Also