I have a script in Rhinoscript for automating/batching some computations in rhino remotely.
I use in my script Rhino.DocumentModified “False” to avoid the prompt asking to save modified file so if I write manually _Exit in the command line after executing my script, Rhino close itself without asking so is perfect.
But if I use in my script Rhino.Exit or Rhino.Command("_Exit"), this doesn’t work. Rhino is still opened.
I got Rhino closed if I play my script from Rhino Script Editor in Rhino but I need to call my script remotely, so I have to compile it as a plugin to be able to execute it outside the Editor, as a command in the Rhino Command Line.
Really I need to call Rhino from Windows command line, like this:
“C:\Program Files\Rhinoceros 5.0\System\Rhino.exe” /runscript="_myscriptname"
Rhino starts and executes my script but does’t close.
Even if I I call it from Rhino command line manually it doesn’t work (executes evertything in the script but doesn’t close Rhino).
Is there a way to close rhino from script plugin? May It is not possible…
Any help would be really appreciated!
Thanks in advance.
Enrique de Meer