C++
void acedUpdateDisplay();
File
aced.h
Description
This function causes AutoCAD to update its display screen. The update is essentially a repaint of the AutoCAD graphics window with what AutoCAD's display engine has cached as the window's image.
AutoCAD manages its display area in the most efficient way by keeping track of which portions of the screen are affected as you make various calls to AutoCAD. In general the calls you make will not immediately be reflected in screen changes. AutoCAD will conglomerate the calls and make them apparent at times that minimize disturbances to the screen. When AutoCAD is not active or has no focus, it will not update its display at all. If you're in a modeless dialog and adding or updating an entity, the display won't show the changes when they occur. In such cases, you can use this function to force AutoCAD to update its display.
While it might initially appear to be a good idea to call acedUpdateDisplay frequently, there are two possible drawbacks. First, it might incur undue processing overhead. Secondly, frequent calls to correct the display might result in screen flashing that could be disturbing to the user.