why does the acadApp need to be visible?

Discussion in 'AutoCAD' started by agonzalez, May 3, 2005.

  1. agonzalez

    agonzalez Guest

    I'm wondering if there is a reason for why when manipulating the AutoCAD
    application via COM is it necessary to have it's window be visible:

    acadApp.Visible = true;

    If it is not visible this ocurrs:

    An unhandled exception of type
    'System.Runtime.InteropServices.COMException' occurred in ConvertDWG.exe
    Additional information: AutoCAD main window is invisible

    Any insight:

    Thanks,

    Alex
     
    agonzalez, May 3, 2005
    #1
  2. agonzalez

    Wyatt Earp Guest

    What API call does the exception occur on? I have done quite a bit of
    stuff with c# (looks like the language you are using) without any bit
    of AutoCAD visible (though I did have my form visible).
     
    Wyatt Earp, May 8, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.