C# open new document

Hi,
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.

https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsIsolate.cs

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

Sorry no.

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

I think the command is useful. I tried successful