ForceViewUpdate Method


Sets Revit to update the preview view if necessary.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2012

Syntax

C#
public void ForceViewUpdate(
	bool forceViewUpdate
)
Visual Basic
Public Sub ForceViewUpdate ( _
	forceViewUpdate As Boolean _
)
Visual C++
public:
void ForceViewUpdate(
	bool forceViewUpdate
)

Parameters

forceViewUpdate
Type: SystemBoolean
True to force update of the preview view. False to skip update if necessary (the default).

Remarks

An update is necessary if the view has never been displayed, or if the model has been changed and the view has not been updated or accessed. If the preview view has not been updated, the preview may not be properly saved.

This setting applies only to a single Save operation and is reset to false after it is accessed.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →