TCL BUTTON SCRIPT: How would I get this tcl command to loop and excute the commands within every 20 mins
Hi,
Currently trying to make this code execute an autosave every 20 mins, I know the code within the command works having individually input it into the HM tcl window. But struggling to get the code to repeat itself.
I know of the "autosave" script that already exists from Hyperworks themselves, but hoping to introduce into a button/script that already exists.
Any help is much appreciated.
Thanks,
Michael
Answers
-
There is no looping function shown in your code. The proc command is to create a custom function that you can call in other places in your code. The first argument is the name of the function and the second is a variable name for the arguments.
https://www.tcl.tk/man/tcl8.5/TclCmd/proc.htmlYou probably want to use a while command to loop.
https://www.tcl.tk/man/tcl8.5/TclCmd/while.html
The challenge I see is getting control back from tcl during the 20 minutes or in other words getting tcl to act after 20 minutes.
0