surely ObjectDBX would have some way of telling you if you can read/write to a file??
The problem with your test is although you check to see if it's ok, what's to say that it's not ok by the time you go to actually write to the file, you really do need to 'have' the file to work on it without error. Unlikely I know but...
I haven't used dbx before but I'd imagine it would be like working directly on the database which has it's own ways of letting you know if it's available (ErrorStatus results returned for example).
ObjectDBX is just a way to open a drawing without loading it into the editor, so it acts almost just like the database of any drawing. I have tried to just open the DBX doc, but that didn't work either. Now I open the drawing right after I test it, and do my changes to it then, and then test the next one if it can be opened. Maybe this is just to big for me to have as my first attempt at a real project. I mean I got it to work, but I'm sure it can be made to run faster/smoother/smarter... etc. If that is the case, then I will just do as much research as I can, instead of asking so many questions. I really do appreciate all the help I have been given, and I don't want to seem like a leach.
I take it that you are using this as a stand alone app not associated with AutoCAD?
Na, this will be called from within Acad. I think you have to pay for a licence for 'RealDwg' to use ObjectDBX without Acad installed, and I'm sure my company won't pay for that since I'm just beginning, and they have real programmers who know what they are doing.
If you think it would help I can post the code, but its long (around 300 lines), and I don't think people want to read the whole thing to try and find the couple of lines that may make it faster, I know I don't when I'm trying to help someone with there code, that they wrote.
Thanks again for all the help, I really do appreciate it.