Forgot password?

Create an account!

Forum

« back

General – check files in folder for correctness

Messages

Please log in to write a message.

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

    Hi,

    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!

    Hanno

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

    Hello,
    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("_SelNone")
      Rhino.Command("_SelPt")
      Rhino.Command("_Hide _Enter")
      Rhino.Command("_SelAll")
      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.

Recommend

Why are these buttons gray?