Forgot password?

Create an account!

Forum

« back

RhinoScript – Exit rhino from script/command file

Messages

Please log in to write a message.

  • 6. Nolwenn (Sep 24, 2014 11.44):

    Hello Enrique,

    I have the same problem, did you find a solution ?

    Regards

    Nolwenn

  • 5. edemeer (Nov 29, 2013 14.33):

    Hi,

    I am trying to explain better my problem.

    For example, this script file:

    Option Explicit

    Sub Salir()

            Rhino.Exit
           
    End Sub

    Call Salir

    If I do in the Rhino Command Line: -_LoadScript myScriptAbove
    then Rhino Closes.

    But if I compile my script with Monkey and write the command name in my Rhino Command Line then Rhino does nothing.

    Any help?

  • 4. edemeer (Nov 28, 2013 16.10):

    Even if I compile the script and install it as a plugin in Rhino and I call it from Rhino command line it doesn't work.

    Any help?

    Regards,

    Enrique.

  • 3. edemeer (Nov 28, 2013 16.05):

    Hi,

    Thanks for your help.

    I got Rhino closed if I play my script from Rhino Script Editor in Rhino but I forgot to say thay I need to call my script remotely.

    I need to call Rhino from Windows command line, like this:

    "C:\Program Files\Rhinoceros 5.0\System\Rhino4.exe" /runscript="_myscriptname"

    Rhino starts and executes my script but does't close.

    Regards,

    Enrique.

  • 2. Johannes (Nov 28, 2013 15.35):

    Hi,

    a simple script with "Rhino.Exit" closes Rhino on my Computer.

    Johannes

  • 1. edemeer (Nov 28, 2013 14.17):

    Hi!

    I have a command file for automating/batching some computations in rhino.

    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 Rhino close itself without asking so is perfect.

    But if I use in my script Rhino.Exit or Rhino.Command("_Exit") don't work. Rhino is still opened.

    Is there a way to close rhino from script?

    Regards,

    Enrique de Meer

Recommend

Why are these buttons gray?