Make Drawing ActiveDocument

Discussion in 'AutoCAD' started by Rich19, Jul 29, 2004.

  1. Rich19

    Rich19 Guest

    Hi All,

    I'm writing a custom app using VB .NET and ACAD 2002. Does any of you experts out there know how to open a drawing and make it the Activedocument. I already have the ACADAPP object defined and open but am having no luck trying to open an existing drawing file and making it the ActiveDocument.

    Thanks in advance!
     
    Rich19, Jul 29, 2004
    #1
  2. AcadDocument doc = acadApp.Documents.Open(filename)
     
    Frank Oquendo, Jul 30, 2004
    #2
  3. Rich19

    Rich19 Guest

    Thanks a bunch Frank. That worked great!
     
    Rich19, Jul 30, 2004
    #3
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.