C# open new document

Scripting the “New” command in C# like this: Rhino.RhinoApp.RunScript("-_New _Enter", true); doesn’t seem to give any result. Am I missing something?
Is there a better way to start a new Rhino project in C# ?
Thank you!

Make sure to add the “script runner” command style attribute. Here is an example.


Thank you Dale! We will implement that.
Any API available that would return the same results?

Sorry no.

Rhino.RhinoApp.RunScript("_-New None", false);

I think the command is useful. I tried successful