Execute the command each time rhino starts

public override Rhino.PlugIns.PlugInLoadTime LoadTime
{
    get { return PlugInLoadTime.AtStartup; }
}

protected override Rhino.PlugIns.LoadReturnCode OnLoad(ref string errorMessage)
{

    RhinoApp.WriteLine("test");

    return Rhino.PlugIns.LoadReturnCode.Success;
}

Currently, I need to automatically execute a piece of logic every time rhino is started, overriding LoadTime, which is not possible with OnLoad

I’m just curious, Rhino has an option to run a command at startup. Why can’t you use this?

I am working on a plugin that needs to automatically execute some logic when rhino starts up. If you are using the runtime execution logic in the Settings, it is cumbersome to need to change the ini file

1 Like