Editor类实例化,教程上是这么写:
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
可按一般类的实例化,应该是这么写:
Editor ed = new Application.DocumentManager.MdiActiveDocument.Editor();//编译出错,提示如下:
//“Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager”是“属性”,但此处被当做“类型”来使用