ObjectDBX - Access a Drawing in Use

ObjectDBX - Access a Drawing in Use

Anonymous
Not applicable
410 Views
2 Replies
Message 1 of 3

ObjectDBX - Access a Drawing in Use

Anonymous
Not applicable
Hello all,

Info:
AutoCAD Building Systems 2007 on XP

Problem:
I'm currently using ObjectDBX to cycle through an entire project's sheet file directory and grabbing the Layouts collection from each sheet drawing for plotting. All works fine except for when a user has one of the sheets open and the ObjectDBX fails due to a "File in use" or read only drawing status.

Question:
Is there a way to have ObjectDBX access the drawing regardless of the drawing's read status?? This is the last issue to resolve before I can implement this simple routine to my users.

Any ideas, cheats, or solutions would be greatly appreciated.

-Don
0 Likes
411 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Just catch the error, then when it errors with the Unable to open drawing
make a temp copy of it and open the copy, when done delete the copy.

wrote in message news:5451796@discussion.autodesk.com...
Hello all,

Info:
AutoCAD Building Systems 2007 on XP

Problem:
I'm currently using ObjectDBX to cycle through an entire project's sheet
file directory and grabbing the Layouts collection from each sheet drawing
for plotting. All works fine except for when a user has one of the sheets
open and the ObjectDBX fails due to a "File in use" or read only drawing
status.

Question:
Is there a way to have ObjectDBX access the drawing regardless of the
drawing's read status?? This is the last issue to resolve before I can
implement this simple routine to my users.

Any ideas, cheats, or solutions would be greatly appreciated.

-Don
0 Likes
Message 3 of 3

Anonymous
Not applicable
I had a feeling that would be the only way...
I'm just trying to keep this code as fast as possible since there are som many files...

Thanks tho - I'll adjust the code as you suggest for now...

But hopefully somebody will know a secret way to get this thing to "Read-only"...

-don
0 Likes