How to stop the .tcl script in HyperView while running?
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
-
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
0 -
Michael Herve_21439 said:
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
0 -
Thirukumaran Subbian said:
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.
0