Message 1 of 24
How to open DWG file in Autocad 2009 in C# ?

Not applicable
06-12-2009
08:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm developping a dll for Autocad 2009.
I would like to know, how to open a DWG file ?
I tried :
Database db = new Database();
db.ReadDwgFile(file.Path, FileOpenMode.OpenForReadAndAllShare, true, "");
---> does nothing
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(file.Path);
--> Error concerning Execution Context.
Thank you
I'm developping a dll for Autocad 2009.
I would like to know, how to open a DWG file ?
I tried :
Database db = new Database();
db.ReadDwgFile(file.Path, FileOpenMode.OpenForReadAndAllShare, true, "");
---> does nothing
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(file.Path);
--> Error concerning Execution Context.
Thank you