Hey @Dale, apologies I should have posted a sample originally.
Here is the code that causes me issues. The original command seems to work fine and I can’t replicate my _- issue with this, so I’ll have to figure out why that is. But below will replicate my issue with not returning Scripted for Aliases when I call ABug.
public class AliasBugPlugin : Rhino.PlugIns.PlugIn
{
protected override LoadReturnCode OnLoad(ref string errorMessage)
{
CommandAliasList.Add(AliasBugCommand.CommandAlias, AliasBugCommand.CommandName);
return base.OnLoad(ref errorMessage);
}
}
public class AliasBugCommand : Command
{
public const string CommandName = "AliasBug";
public const string CommandAlias = "ABug";
public override string EnglishName => CommandName;
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
var lastCommand = Command.GetMostRecentCommands().Last();
RhinoApp.WriteLine(mode.ToString());
RhinoApp.WriteLine(lastCommand.Macro);
return Result.Success;
}
}