SetRedraw Method (Application Object)

Scope: Schematic editor

Object: Application Object

Prerequisites: None

Allows or prevents changes from being drawn.

Usage

Application.SetRedraw(ByVal Redraw As Boolean)

Arguments

Redraw

Specifies whether to enable or disable drawing

True - Enable drawing of the window as changes are made. False - Disable drawing of the window as changes are made.

Examples

You can use this method to prevent the application from drawing changes for a period of time.

For example, a script could call SetRedraw(FALSE), perform operations which would normally update the screen, then call SetRedraw(TRUE) to see all the changes at once. Calls to SetRedraw(FALSE) and SetRedraw(TRUE) must be paired and can be nested. The final call to SetRedraw(TRUE) automatically cause the views to be refreshed.