Find more posts tagged with
Sort by:
1 - 4 of
41
Hi Harish
To halt a runnning script, you can use tkwait
Ex:
proc ::p_RunningScript args {
#a very long time script
for {set i 0} {$i<1000000000} {incr i}
Do something...
if {!($i%1000)} update
if {$::halt} {
tkwait variable ::halt
}
}
}
#before running, indicate halt=0
set ::halt 0
::p_RunningScript
#to halt above script, set halt = 1
set ::halt 1
#then call your save as reminder
p_SaveAsReminder
#to continue the halt script:
set ::halt 0
/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
Hi Harish,
If i'm not wrong, after 10000 will merely delay execution of next line. So what operation do you want to do in hypermesh?