HyperMesh Freezes up while running calculation intensive scripts
Hi all,
I am running a tcl script inside HyperMesh. The script is very computationally intensive and when the script is running, HyperMesh just locks up. It wont even 'puts' information into the command window while its running. Once the scripts is complete everything returs to normal.
Does anyone know of a way to prevent this from happening or have any suggestions on how to pause my script and output information to the command window while its running?
Thanks
Brian
Find more posts tagged with
Hi all,
I am running a tcl script inside HyperMesh. The script is very computationally intensive and when the script is running, HyperMesh just locks up. It wont even 'puts' information into the command window while its running. Once the scripts is complete everything returs to normal.
Does anyone know of a way to prevent this from happening or have any suggestions on how to pause my script and output information to the command window while its running?
Thanks
Brian
If your script has some loops with huge iterations then you should put in such loops tcl command 'update'
ex:
set stop 0
while {!$stop} {
#long time works
...
...
update
hm_usermessage 'processing ...'
}
with update command, GUI will response to user events and temporary stop processing if user interacts
Hi Brian,
i'm still using TCL window support in the following way:
creating the window:
PopupWorkingWindow 'Detecting welds ...' 500 500
updating the window:
set msg 'Detecting welds ... $count_comps % done';
UpdateWorkingWindow $msg
close the window:
PopdownWorkingWindow
To speed up Hypermesh scripts switch off the response, e.g.
switch off:
*entityhighlighting 0
hm_blockmessages 1
your code...
switch on: (don't forget!!!)
*entityhighlighting 1
hm_blockmessages 0
Best regards,
Mario