Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sorry for asking this, I'm sure i'm doing something stupid, but can't get it to work and can't find the answer. Tried several combinations, all give me a efileaccesserr when trying to read unopened dwg-file.
for example by:
Database db = new Database(false, true);
using (db)
{db.ReadDwgFile(path, FileOpenMode.OpenForReadAndAllShare, true, "");
or even with:
DocumentCollection acDocMgr=Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager;
Document acNewDoc = acDocMgr.Add(path);
it immediatly gives me the error. it's the first lines in my code.
the "path"variable contains the path, as you might have expected.
Solved! Go to Solution.