Message 1 of 3
Lock document wtihout open it
Not applicable
06-19-2012
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to update a xref path of a autocad document without open it. I've tried something like this to access the database of a document
using (Database db = new Database(true, false))
{
db.ReadDwgFile(fullpath, System.IO.FileShare.ReadWrite, false, "");
// rest of the code ....
}
In order to do that the readdwgfile the document must be locked right? Because i'm going to modify blocks of the document. So how can I lock a document without open it?
Thanks and kind regards,
Diogo