using Bricscad.ApplicationServices; using SWS.Commons; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Teigha.Runtime; namespace SWS.CAD.CADFunc.Editor { public class EditorHelper { /// /// 写提示文字 /// /// public static void WriteInfo(string info) { var editor = Application.DocumentManager.MdiActiveDocument?.Editor;// 获取当前文档的命令行编辑器对象。 if (editor != null) { editor.WriteMessage($"{GlobalObject.editorPre}{info}"); } } } }