开发平台 : AutoCAD 2010 + vs2008 开发语言 : C# 任务实现 : 命令行与用户进行交互 公用函数: public static void MessgeToCommandLine(string message) { Document cadDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Editor cadDocEditor = cadDoc.Editor; cadDocEditor.WriteMessage(message); } 任务一 : 命令行输入 请输入角度: Editor editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; PromptDoubleResult result = editor.GetAngle("请输入角度:"); if ( result.Status == PromptStatus.OK ) { return result.Value; } return