+ Reply to Thread
Results 1 to 3 of 3

Thread: script progress feedback to the Command Console ?

  1. #1

    script progress feedback to the Command Console ?

    Hi,
    I am running a script that does thousands of BREP intersections, obviously it is slow.
    so i use rs.StatusbarMessage to give me feedback about the progress.
    this works fine for the first 15 seconds. Then Rhino turns to "not responding" , no more progress feedback, it seems to be crashing.
    After a minute or two however my script finishes successfully.
    Is there a way to avoid this interface freeze?

    Or alternatively is there an easy way to print the progress feedback to the standard windows command console instead? So that I can estimate how long it will take to finish.
    Last edited by Goswin; 09-19-2012 at 02:42 PM.

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    Hi Goswin,
    I probably need to adjust the script to include a Wait call so the message pump can update. Try this; add Rhino.RhinoApp.Wait() to your script right after calling StatusBarMessage to see if that clears things up

    Python Code:
      import rhinoscriptsyntax as rs
      import Rhino
       
      ....
          rs.StatusBarMessage( my_message )
          Rhino.RhinoApp.Wait()

  3. #3
    Thanks Steve, this works .

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts