Forgot password?

Create an account!


« back

General – check files in folder for correctness


Please log in to write a message.

  • 2. Hanno (Sep 17, 2011 21.27):


    regarding your "avoiding popup windows" question: You can prefix a hyphen to any rhino command ("-_check"). This will force it to make all i/o through the rhino command prompt.
    You can script the "-_open" command the same way, which allows you to iterate through several files. Tip: Call Rhino.DocumentModified(false) before opening new models to suppress the "Save?" dialog.

    Hope that helps!


  • 1. pool338 (Sep 15, 2011 11.33):

    i want to write a script, that checks all files in specific folder for correctness.

    following script is what i fiured out yet:

    Sub main
      Rhino.Command("_Hide _Enter")
      Rhino.Print Rhino.Command("_Check")
    End Sub

    The 1st problem i have is, that the call of "_Check" opens a window in Rhino. How can i avoid this, or close it via script?

    The 2nd is, that this script only checks the current file. Is there a possibility to make a loop and open each file in given folder, call the check sub and close the file after check?

    Would be nice if i could print out the filename and the checkresult into e textfile or so.

    Thanks for the help.


Why are these buttons gray?