 - Document doc = Application.DocumentManager.Open(strDWGFile, false);
- Application.DocumentManager.MdiActiveDocument = doc;
- strMsg = string.Format("\n图纸文件路径为{0}", strDWGFile);
- Editor newED = doc.Editor;
- newED.WriteMessage(strMsg);
执行的效果如下图,为什么输出的文字内容出现在命令行中,变成了命令?

|