I have no idea why it cannot make a box and line. I want to run any command in rhino but, result of Runscript is always false. There is not any error, but it always fail to execute command.
It succeeds for me when Rhino is not in the middle of executing a command. When you try to run that script, Rhino still thinks it’s executing the “YourCommandName” command when you make the script call.
When I do this, which is run from a button click on my own user form, it creates a circle:
Both in C++ and in C# the command must be marked as a “script runner” command to be able to use the RunScript approach. In C++ this is done by overriding the IsScriptRunnerCommand() function in the command class, in C# it is done with an attribute applied to the command class called CommandStyle.ScriptRunner.