private void button1_Click(object sender, EventArgs e) { Class1 a = new Class1(); a.CreateEmployee(); } namespace test { class Class1 { public void CreateEmployee() // This method can have any name { Database db = new Autodesk.AutoCAD.DatabaseServices.Database(); Transaction trans = db.TransactionManager.StartTransaction(); try { } catch { } finally { trans.Dispose(); } db.SaveAs("3.dwg", DwgVersion.Current); } 这样访问提示我System.IO.FilleNotFoundException:"被指定了的组件没找到" 请高手指点!!万分感谢! |