Close/Disable resolution startup popup

Close/Disable resolution startup popup

哀家爆
Enthusiast Enthusiast
190 Views
1 Reply
Message 1 of 2

Close/Disable resolution startup popup

哀家爆
Enthusiast
Enthusiast

AutoCAD returns an error message on start up: "AutoCAD Error Aborting: "AutoCAD requires 1024 x 768 resolution or higher to run." 

I have some codes to start up an AutoCAD instance in other app:

AcadApplication acAppComObj;
const string strProgId = "AutoCAD.Application.23.1";

// Get a running instance of AutoCAD
try
{
    acAppComObj = (AcadApplication)Marshal.GetActiveObject(strProgId);
}
catch // An error occurs if no instance is running
{
    try
    {
        // Create a new instance of AutoCAD
        acAppComObj = (AcadApplication)Activator.CreateInstance(Type.GetTypeFromProgID(strProgId), true);
    }
    catch
    {
        // If an instance of AutoCAD is not created then message and exit
        return;
    }
}
.......

 

Is there some api to close or disable this popup dialog while I am starting up a cad instance?

0 Likes
191 Views
1 Reply
Reply (1)
Message 2 of 2

哀家爆
Enthusiast
Enthusiast

By the way, because of the development environment, I can't set the resolution of the computer.

0 Likes