By Virupaksha Aithal
You can use “Autodesk.AutoCAD.ApplicationServices.Document” class’s property “CommandInProgress” to identify the running command name inside a document. This string is always returns the English command name.
Document doc = Autodesk.AutoCAD.ApplicationServices.
Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
string str = doc.CommandInProgress;
if (str != "")
{
ed.WriteMessage(str + "n");
}
else
{
ed.WriteMessage("No command is running" + "n");
}

Leave a Reply