Is it possible to load a DBX file into a file accessed with objectdbx ?
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
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.
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
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.
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......
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
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.
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.
Just tried it in Australia and it does work. Try this link http://mysite.verizon.net/~vze2vjds/ Regards - Nathan
Weird !!!!! I have tried that link and the cadzone link at work and home with no success... BUGGER !!
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