using Autodesk.AutoCAD.Runtime;
using System.Reflection;
using NS.Helper;
using CadApp = Autodesk.AutoCAD.ApplicationServices.Application;
[assembly
: CommandClass
(typeof(NS
.P1.Commands_P1))]
namespace NS.P1
{
public class Commands_P1
{
[CommandMethod("P1_TEST")]
public static void Test_P1()
{
var ed = CadApp.DocumentManager.MdiActiveDocument.Editor;
Recorder.Counter += 1;
MethodBase m = MethodBase.GetCurrentMethod();
string home = $"{m.ReflectedType.Namespace} . {m.ReflectedType.Name} . {m.Name} ";
ed.WriteMessage(
$"From in : {home} :: Counter is {Recorder.Counter}\n");
}
}
}