New to ObjectDBX

Discussion in 'AutoCAD' started by Spageddie, Aug 13, 2004.

  1. Spageddie

    Spageddie Guest

    Is it possible to load a DBX file into a file accessed with objectdbx ?
     
    Spageddie, Aug 13, 2004
    #1
  2. Spageddie

    Mark Propst Guest

    can you re-phrase what you mean by "Load" a dbx file into a file?
    what is a dbx file?
    with ObjectDBX you can access .dwg files 'on disk' (without opening in
    acad's editor window)
    once 'opened' via Objectdbx you can manipulate them (in any way the object
    model allows via dbx).
    I don't understand exactly what you want to do to the files via objectDBX.
    Mark
     
    Mark Propst, Aug 14, 2004
    #2
  3. A .dbx file is a database extension file that contains the
    implementation of custom objects.

    They're automatically loaded by ObjectDBX whenever it
    opens a drawing containing the custom objects.
     
    Tony Tanzillo, Aug 14, 2004
    #3
  4. Spageddie

    Mark Propst Guest

    Me duh! :-|

    How cool! Will the learning never end?
    :)
    Thanks
    Mark
     
    Mark Propst, Aug 14, 2004
    #4
  5. Spageddie

    Spageddie Guest

    The reason I ask this query is that we run "Prosteel" on our machines, and I'm accessing a file using ObjectDBX but the information I'm attempting access needs to have a particular ARX file loaded, so what I am asking is......

    Can an ARX file be loaded into a dwg that is accessed using ObjectDBX
     
    Spageddie, Aug 16, 2004
    #5
  6. Spageddie

    manoj_vest Guest

    Hi Spageddie,

    If your problem is only to load an arx file, yes you can do that. First check whether the arx is already loaded or not, if not then load it programatically. The following is the method you need to call
    object.LoadARX Name where the object is the AutoCAD application object.

    So I thing this answers your query.
     
    manoj_vest, Aug 16, 2004
    #6
  7. You asked about a DBX file.

    Which is it, DBX or ARX ?



    I'm accessing a file using ObjectDBX but the information I'm attempting
    access needs to have a particular ARX file loaded, so what I am asking
    is......
     
    Tony Tanzillo, Aug 16, 2004
    #7
  8. Spageddie

    Spageddie Guest

    On further inspection I found that I need to an ARX file loaded instead.

    Here is a snippet of code for your perusal..would something like this work ?

    Dim DbxDoc As New AXDB15Lib.AxDbDocument

    Set DbxDoc = Application.GetInterfaceObject("ObjectDBX.AxDbDocument")
    DbxDoc.Open (XrName)

    DbxDoc.Application.LoadArx ("C:/Program Files/Bentley/Plant 2004/Structural/prg/ps3d_com.arx")

    DbxDoc.SaveAs XrName
    DbxDoc.Close
     
    Spageddie, Aug 16, 2004
    #8
  9. You seem to be assuming that ARX and DBX files
    are loaded into drawings. They're not. They're
    loaded into AutoCAD or the host process that is
    using ObjectDBX to access .DWG files.

    Just load the ARX file into AutoCAD using the
    AcadApplication object (the Application property
    of any object returns that).

    You only do this once, per Acad.exe session,
    not once for each AxDbDocument.

    Whether your .ARX functionality will work on
    drawings that are not open in the AutoCAD editor
    is another matter, and I can't tell you much about
    that.
     
    Tony Tanzillo, Aug 16, 2004
    #9
  10. Spageddie

    Spageddie Guest

    OK...I understand how it works now....
    Thanks for the information Tony..
    By the way are you aware that we (here in Austrlia) can not get access to your website (http://www.caddzone.com/).
    Which is shame as I have tried numerous times without success...

    Anyway thanks again.
     
    Spageddie, Aug 17, 2004
    #10
  11. Nathan Taylor, Aug 17, 2004
    #11
  12. Spageddie

    Spageddie Guest

    Weird !!!!!
    I have tried that link and the cadzone link at work and home with no success...

    BUGGER !!
     
    Spageddie, Aug 17, 2004
    #12
  13. Thanks. I've been trying to find out why this happens for
    quite some time, but haven't gotten far.
     
    Tony Tanzillo, Aug 17, 2004
    #13
  14. Spageddie

    Kerry Brown Guest

    Nathan, Tony

    Does not work for me either.
    I think I have tried every link Tony has posted. It's been an issue for
    [probably, say] 12 to 18 months

    Regards.Kerry

    Just tried it in Australia and it does work. Try this link
    http://mysite.verizon.net/~vze2vjds/
    Regards - Nathan
     
    Kerry Brown, Aug 18, 2004
    #14
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.