Results 1 to 5 of 5

Thread: OBJECTDBX and VB

  1. #1
    Member
    Join Date
    2005-08
    Posts
    21
    Login to Give a bone
    0

    Default OBJECTDBX and VB

    Hello Guys,
    I am trying to implement ObjectDbx interface so that I can extract information from the drawing without actually opening a graphic session. Well ObjectDbx works very well if you are in the Autocad session. How do you implement the similar functionality using VB. When ever I try to initialize the object variable, it returns a run time error
    " -2147024770 (8007007e)': Automation error: The specified module could not be found.

    Thanks,
    Raj

  2. #2
    Member
    Join Date
    2005-08
    Posts
    21
    Login to Give a bone
    0

    Default Re: OBJECTDBX and VB

    Hello Group,
    I figured it out how to initialize the objectdbx in VB.
    Well first of all one has to get the handle on the AcadApplication

    Dim acadApp As AcadApplication
    Dim oDBX As AxDbDocument


    Set acadApp = CreateObject("AutoCAD.Application.16")

    Then once the handle is acquired,

    Set oDBX = acadApp.GetInterfaceObject("ObjectDBX.AxDbDocument.16")

    Use getinterfaceobject method of the acadapp to get handle on the AxDbdocument.

    Thanks,
    Raj

  3. #3
    Login to Give a bone
    0

    Default Re: OBJECTDBX and VB

    Raj,

    I am desperately trying to use this method, but I keep getting an exception error. Is the 16 in this referring to version 16 of AutoCAD?

    I am trying to use AutoCAD to run a macro that gets a list of drawings and extracts all the titleblock attributes to an excel sheet. Got that no problem, but I want it to go faster and thought this method might do it.

    Does anyone have a way to open a drawing and extract attributes (that part of the code I have down pat) using the Objectdbx and AutoCAD 2012. What am I missing here?

    All help is appreciated.

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

    Default Re: OBJECTDBX and VB

    The string needed for your pc can be found in the registry. See the bottom of the attached pic for the path.
    Attached Images Attached Images
    C:> ED WORKING....

  5. #5
    Woo! Hoo! my 1st post
    Join Date
    2013-02
    Posts
    1
    Login to Give a bone
    0

    Default Re: OBJECTDBX and VB

    Many thanks

    Quote Originally Posted by raj_thapar2003 View Post
    Hello Group,
    I figured it out how to initialize the objectdbx in VB.
    Well first of all one has to get the handle on the AcadApplication

    Dim acadApp As AcadApplication
    Dim oDBX As AxDbDocument


    Set acadApp = CreateObject("AutoCAD.Application.16")

    Then once the handle is acquired,

    Set oDBX = acadApp.GetInterfaceObject("ObjectDBX.AxDbDocument.16")

    Use getinterfaceobject method of the acadapp to get handle on the AxDbdocument.

    Thanks,
    Raj

Similar Threads

  1. ObjectDBX change UCS
    By per.fredrik.skold in forum Dot Net API
    Replies: 0
    Last Post: 2010-10-26, 10:17 PM
  2. ObjectDBX in 2010
    By michael.montagne in forum VBA/COM Interop
    Replies: 6
    Last Post: 2010-03-04, 06:48 PM
  3. C# and ObjectDBX?
    By KevinBarnett in forum Dot Net API
    Replies: 1
    Last Post: 2006-09-19, 06:09 AM
  4. Saving in ObjectDBX
    By whdjr in forum AutoLISP
    Replies: 11
    Last Post: 2004-07-28, 07:01 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
  •