How to stop the .tcl script in HyperView while running?

Thirukumaran
Thirukumaran Altair Community Member
edited August 22 in Community Q&A

Hello,

I have a query regarding the TCL scripting in HyperView. How to stop my TCL script in HyperView in order to rotate the model and continue running the script? Kindly share of inputs with this regards.

Thanks in advance,

Thirukumaran Subbian 

Answers

  • Michael Herve_21439
    Michael Herve_21439
    Altair Employee
    edited August 13

    Hello,

     

    one colleague of mine proposed me the following procedure couple of weeks ago:

     

    proc stopScript {message} {
    # Create and arrange the dialog contents.
    toplevel .msg
    wm geometry  .msg 300x150
    label  .msg.l  -text $message
    button .msg.ok -text Proceed -default active -command {destroy .msg}
    pack .msg.ok -side bottom -fill x
    pack .msg.l  -expand 1    -fill both
    }




    puts "start doing your thing"

    stopScript "Do task A ...";tkwait window .msg

    puts "Task A done ......."

    stopScript "Do task B ....";tkwait window .msg

    puts "Task B done ......."

    stopScript "Do task C ....";tkwait window .msg

    puts "Task C done ......."


    Can you please test it?

     

    Best Regards,

    Michael

  • Thirukumaran
    Thirukumaran Altair Community Member
    edited August 13

    Hello,

     

    one colleague of mine proposed me the following procedure couple of weeks ago:

     

    proc stopScript {message} {
    # Create and arrange the dialog contents.
    toplevel .msg
    wm geometry  .msg 300x150
    label  .msg.l  -text $message
    button .msg.ok -text Proceed -default active -command {destroy .msg}
    pack .msg.ok -side bottom -fill x
    pack .msg.l  -expand 1    -fill both
    }




    puts "start doing your thing"

    stopScript "Do task A ...";tkwait window .msg

    puts "Task A done ......."

    stopScript "Do task B ....";tkwait window .msg

    puts "Task B done ......."

    stopScript "Do task C ....";tkwait window .msg

    puts "Task C done ......."


    Can you please test it?

     

    Best Regards,

    Michael

    Hello Michael, 

    Thank you for your valuable inputs. We will update you once we test this case and share our feedback on this.

    Thank you,

    Thirukumaran 

  • Carlos Flauzino_22279
    Carlos Flauzino_22279 Altair Community Member
    edited August 22

    Hello Michael, 

    Thank you for your valuable inputs. We will update you once we test this case and share our feedback on this.

    Thank you,

    Thirukumaran 

    Hi Thirukumaran,

     If you want to make it more automatic, you can use the *view command to adjust the position as needed and then take a screen capture, for example, without stopping the script.

     Here is the command information in case you need it: https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_view.htm

    I hope this helps you!

    Flauzino, C.