下面是飞狐版主曾经写的 获得命令行字符串!
var ed = Application.DocumentManager.MdiActiveDocument.Editor;
var strs = Autodesk.AutoCAD.Internal.Utils.GetLastCommandLines(4, false);
for (int i = 0; i < strs.Count; i++ )
{
ed.WriteMessage("\n第{0}行:{1}", i+1, strs);
}
你想获得一行字符的把.GetLastCommandLines(1, false);改成1
上面是获得命令行字符的函数!你想按下回车获得!还得再写个事件!我先试试好了在贴上来
页:
1
[2]