- [CommandMethod("QQQQ")]
- public void QQQQ()
- {
- Database db = HostApplicationServices.WorkingDatabase;
- Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
- Document DOC = ed.Document;
- db.SaveAs("E:\\2.DWG",DwgVersion.Current);
- DOC.SendStringToExecute("CLOSE ",true,false,false);
- }
用上面 的代码时,如果文件中有内容,运行QQQQ命令时,老出现一对话框,提示“是否将改动保存到E:\2.dwg”,怎么能控制不出现这个对话框,请高手指点!!!
|