Access the Application Object
 
 
 

The Application object is at the root of the object hierarchy and it provides access to the main window of AutoCAD. For example, the following line of code updates the application:

VB.NET

Autodesk.AutoCAD.ApplicationServices.Application.UpdateScreen()

C#

Autodesk.AutoCAD.ApplicationServices.Application.UpdateScreen();
VBA/ActiveX Code Reference