private AcadApplication a ; Autodesk.AutoCAD.Interop.AcadApplication a; Autodesk.AutoCAD.DatabaseServices.Database db;
private void Form1_Load(object sender, System.EventArgs e) { this.pt1.Text="1,1,1"; this.pt2.Text="122,122,122"; a = new AcadApplicationClass();
this.acadDoc=a.Documents.Open(@"c:\test.dwg", null, null); //本条语句自动打开一个图形文件 a.ZoomAll(); //图形文件实行全局缩放; |