UpdateAllOpenViews Method


Update all open views in this document after elements have been changed, deleted, selected or de-selected. Graphics in the views are fully redrawn regardless of which elements have changed.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018

Syntax

C#
public void UpdateAllOpenViews()
Visual Basic
Public Sub UpdateAllOpenViews
Visual C++
public:
void UpdateAllOpenViews()

Remarks

This function should only rarely be needed, but might be required when working with graphics drawn from outside of Revit's transactions and elements, for example, when using IDirectContext3DServer . This function is potentially expensive as many views may be updated at once, including regeneration of view's geometry and redisplay of graphics. Thus for most situations it is recommended that API applications rely on the Revit application framework to update views more deliberately.

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 →