private AutoCAD.AcadApplication AcadApp = new AutoCAD.AcadApplicationClass() ; private AutoCADConnector Connector = new AutoCADConnector(); private AcadDocument aDocument ; private AcadDocuments aDocuments ;
...
this.aDocument = this.AcadApp.ActiveDocument; this.aDocuments = this.AcadApp.Documents;
AcadApp = Connector.Application; AcadApp.Visible=true; aDocument.Activate(); aDocument=aDocuments.Open(System.Windows.Forms.Application.StartupPath+"\\source223\\4.dwg",0,1);
运行后 出现"被呼叫方拒绝接收呼叫"错误???
本人初学c#开发AutoCAD,用的是VS.net2003和AutoCAD2004,请大虾帮忙解决一下,这到底是什么原因呢?昨晚同样的代码还是可以正常运行的,今天就不行了!!~~ |