What is the acvba.arx file in 2005 - Auto Start VBA - acad.rx, acadvba.arx

Discussion in 'AutoCAD' started by John Collyer, Jan 28, 2005.

  1. John Collyer

    John Collyer Guest

    There are some old post and support notes to add the line:

    acaddvba.arx

    to acad.rx in pre 2004 and acvba.arx in 2004. This should auto-start
    AutoCAD VBA.

    Now in 2005 I can only find acvba.arx but when opened with note pad it
    looks like a non ASCII file.

    Any way to get VBA started without using the startup suite? Or any way
    to get something added to the startup suite in a .msi file for network
    deployment? The startup suite works fine but can't seem to figure out
    how to add this to a deployment using the network deployment wizard.

    -John
     
    John Collyer, Jan 28, 2005
    #1
  2. You can't edit it, its a compiled C++ file. Just add the word acvba.arx to
    a blank text file and name it acad.rx. Now the vba environment will
    automatically initialize. But that doesn't run anything automatically - you
    need to write code for that.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jan 28, 2005
    #2
  3. John Collyer

    John Collyer Guest

    Confirmed that works. We actually had a acad.rx file that was used for
    version 2002 but you need to use the new text line of acvba.arx for 2005.

    It was acadvba.arx in 2002.

    Many thanks!!!

    -John
     
    John Collyer, Jan 28, 2005
    #3
  4. John Collyer

    Danny P. Guest

    I don't think you need this anymore. Wasn't this functionality changed
    in 2004 to remove this requirement? As long as you have an acad.dvb
    file in a support path, it will load automatically. At least, that
    works for me.

    Hope that helps,
    Danny Polkinhorn
    WATG
    Honolulu
     
    Danny P., Jan 28, 2005
    #4
  5. John Collyer

    John Collyer Guest

    No it seams to "load" but doesn't activate the VBA untill you issure
    VBARUN or type alt+F8.
    -John
     
    John Collyer, Jan 28, 2005
    #5
  6. John Collyer

    Danny P. Guest

    John,

    You'll need a Public Sub called "AcadStartup" in your acad.dvb

    Public Sub AcadStartup()
    'your code here
    MsgBox ThisDrawing.Name
    End Sub

    Hope that helps,
    -Danny
     
    Danny P., Jan 31, 2005
    #6
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.