Hi,
I have a plugin, and in my plugin I want to run a Rhino command, for example: Sweep2
I’ve called
RhinoApp.RunScript(“Sweep2”, false);
in my C# code file
But there is nothing happen.
Could you help me?
Thanks & BRs!
Hi,
I have a plugin, and in my plugin I want to run a Rhino command, for example: Sweep2
I’ve called
RhinoApp.RunScript(“Sweep2”, false);
in my C# code file
But there is nothing happen.
Could you help me?
Thanks & BRs!
Your command must be a so-called “script runner”. This can be configured like so:
[CommandStyle(Style.ScriptRunner)] // <-- this
[Guid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")]
public class MyScriptRunningCommand : Command
{
...
}
Thank you,
I will try your way.
More information.