I'm unable to read in a drawing file using .Net Framework 2.0. I must be missing something really simple. The following code works fine with VS2003, but AutoCAD crashes with a FATAL ERROR when using VS2005.
[CommandMethod("test")]
public static void test()
{
using (Database database = new Database(false, true))
{
database.ReadDwgFile(@"C:\tests\15.dwg", FileShare.Read, false, "");
}
}
Ummmm, should be simple, right? Should this be working right out of the box, or is there something I need to do? (BTW, I've recommented the Framework version in acad.exe.config to allow use of the framework that comes with VS2005.)
Thanks!