 - #region 新建dwg文档
- [CommandMethod("dwgCreat", CommandFlags.Session)]
- public void dwgCreat()
- {
- using (Document ODOC = Application.DocumentManager.MdiActiveDocument)
- {
- Document doc = Application.DocumentManager.Add("acad.dwt");
- DocumentCollection docs = Application.DocumentManager;
- docs.MdiActiveDocument = ODOC;
- }
- }
- #endregion 新建dwg文档
终于成功,感谢朋友们的支持
|