Connecting VB to AutoCAD

Discussion in 'AutoCAD' started by Mike King, Jul 17, 2003.

  1. Mike King

    Mike King Guest

    I know this has probably been answered many times but I have googled and browsed to no avail.  I understand how to use VBA with AutoCAD and VisualLisp but I do not no how to capture the AutoCAD application with Visual Basic (not VBA).  Can someone please guide me.



     



    Thanks,



    Mike King



    CADD Manager



    Odeh Engineers, Inc.
     
    Mike King, Jul 17, 2003
    #1
  2. James Belshan, Jul 17, 2003
    #2
  3. Mike King

    Tom Craft Guest

     
        Set APPLICATION = GetObject(, "autocad.application")
        Set THISDRAWING = APPLICATION.ActiveDocument
    dim both variables as public outside of any procedure

    Tom Craft
     

    Mike King wrote:  I know this has probably been answered many times but I have googled and browsed to no avail.  I understand how to use VBA with AutoCAD and VisualLisp but I do not no how to capture the AutoCAD application with Visual Basic (not VBA).  Can someone please guide me. Thanks,Mike KingCADD ManagerOdeh Engineers, Inc.
     
    Tom Craft, Jul 20, 2003
    #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.