Add-Ins?

Discussion in 'AutoCAD' started by Anthony, Jul 7, 2004.

  1. Anthony

    Anthony Guest

    I would like to write an add-in to simplify my very repetitive code writing
    in AutoCAD vba, but i cant figure out how? Is it possible? I'd love to be
    able to get it to write a few hundrend lines of code for me per project...

    -A
     
    Anthony, Jul 7, 2004
    #1
  2. Anthony

    Ed Jobe Guest

    If you have vb6. Not with vba, though.
     
    Ed Jobe, Jul 7, 2004
    #2
  3. Anthony

    MP Guest

    check out the vbe object model
    references: Microsoft Visual Basic for Applications Extensibility 5.3
    as Ed says, not an add-in per se but you can write your code that way
     
    MP, Jul 7, 2004
    #3
  4. Anthony

    Anthony Guest

    I have VB 6 installed on my comp and I found a simple add-in example, but it
    doesnt seem to work in AutoCad's Add-in manager (however it works fine in
    the VB6 add-in manager).

    -A
     
    Anthony, Jul 7, 2004
    #4
  5. Anthony

    Ed Jobe Guest

    I recently created an add-in that adds error handling to the function/sub
    your cursor is in.

    Create a new project and select "Addin" for the type of project. This will
    create an addin for vb. You can't create an addin that will work both in vb
    and vba since both ide's have similar object models with objects having the
    same name. In the project browser, dc on the designer for connecting to the
    ide. Change its Application property from VB to vba ide. Go to
    Project>References and make sure that the reference to the vb ide is
    unchecked and that "Microsoft Visual Basic for Applications Extensibilty
    5.3" is checked. That should be all you need to do.
     
    Ed Jobe, Jul 7, 2004
    #5
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.