private bool OpenDwgAndProcessFile(string Path) { if (App != null) { AcadDocument Doc = this.App.Documents.Open(Path); App.ZoomExtents(); App.ZoomScaled(0.6, AcZoomScaleType.acZoomScaledRelativePSpace); Doc.Save(); Doc.Close(); return(true); } else { MessageBox.Show("请先点击截面上的AutoCAD启动按钮再使用该软件"); return(false); } }