Results 1 to 5 of 5

Thread: ObjectDBX and Acad 2008

  1. #1
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default ObjectDBX and Acad 2008

    Help! I've migrated to 2008 from 2005. All the oDBX programs I've written fail when run in 2008. The exact same code runs perfectly in 2005.

    I have carefully copied the AXAUTO15.TLB from release to release over the years. Has something been done to 2008 to disable oDBX? Or, is there a new reference library I should be using?

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: ObjectDBX and Acad 2008

    To the best of my knowledge, you need to change your ObjectDBX reference to the 2008 version.

    SNAG-04.png
    R.K. McSwain | CAD Panacea |

  3. #3
    I could stop if I wanted to
    Join Date
    2002-02
    Location
    Kansas
    Posts
    487
    Login to Give a bone
    0

    Default Re: ObjectDBX and Acad 2008

    If your are use VB not VBA then all code need to be compile use the new TBL file. it not the AXAUTO15.TLB I Think it AXAUTO17.TLB now

    In your code you get the ObjectDbx Document with code like this

    Code:
    AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.15")
    It need to be change to this

    Code:
    AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.17")
    all other ref in your program to ObjectDBX.??????.15 need to be change to ObjectDBX.??????.17

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: ObjectDBX and Acad 2008

    Quote Originally Posted by MikeJarosz View Post
    I have carefully copied the AXAUTO15.TLB from release to release over the years. Has something been done to 2008 to disable oDBX? Or, is there a new reference library I should be using?
    I think you are mistaken. The type lib is specific to each version. One tlb will never work with another lib. Each version of acad comes with its own type lib. You need to change your code to work with the current version. If your code will always work with only one version, you can do away with the the version specific part. i.e., change "ObjectDBX.AxDbDocument.15" to "ObjectDBX.AxDbDocument". You also have to change your reference to the correct tlb.
    C:> ED WORKING....


    LinkedIn

  5. #5
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default Re: ObjectDBX and Acad 2008

    Version 17 worked. I'm not yet using VB with Autocad despite all the AU classes I've taken. I will be starting an Excel project soon with VSTO. After that, I should be ready for VB and Acad (and Revit).

Similar Threads

  1. How to import text from a Excel spreadsheet to Acad (using ObjectDbx)
    By Michel.Levesque.ST522691 in forum VBA/COM Interop
    Replies: 0
    Last Post: 2014-03-20, 09:19 PM
  2. ACAD 2008 vba compatible with acad 2010?
    By Ammon in forum VBA/COM Interop
    Replies: 3
    Last Post: 2011-01-12, 10:27 PM
  3. 3d tools for acad 2008
    By techunk in forum Software
    Replies: 2
    Last Post: 2008-12-06, 07:04 AM
  4. first render using Acad 2008.
    By l1kz in forum AutoCAD Gallery
    Replies: 9
    Last Post: 2008-05-29, 12:30 PM
  5. What are those dots??? ACAD 2008
    By CADTigress in forum AutoCAD General
    Replies: 7
    Last Post: 2007-09-12, 12:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •