Tcl's not running in batch mode
Hello, all,
I have a Tcl script that is working very well on the HyperMesh interface (I've tried in the command window and as File>Run> Tcl/Tk script too), but when I run using batch mode, something happen that stops the looping job. Even the 'command.tcl' stops to write in a random built-in command.
As general, the .bat file has
C:/altair/hm/bin/win64/hmbatch.exe -tcl '<tcl_directory' '<tpl_directory_called_in_tcl_script>'
What is happening?
Thanks in advance.
Best Answer
-
Hi Lucas,
Certain TCL commands for HyperMesh cannot run in batch mode (in particular display - based commands). So if you have any of those in the script and try to run in batch, it would error out.
If you can post the script more help can be given on this forum to find the issue. Otherwise check through commands in the script to see if any require selection on screen in the HyperMesh GUI or changes to displayed entities or display state.
Thanks,
Rob
0
Answers
-
Hi Lucas,
Certain TCL commands for HyperMesh cannot run in batch mode (in particular display - based commands). So if you have any of those in the script and try to run in batch, it would error out.
If you can post the script more help can be given on this forum to find the issue. Otherwise check through commands in the script to see if any require selection on screen in the HyperMesh GUI or changes to displayed entities or display state.
Thanks,
Rob
0 -
Robert Hoglund said:
Hi Lucas,
Certain TCL commands for HyperMesh cannot run in batch mode (in particular display - based commands). So if you have any of those in the script and try to run in batch, it would error out.
If you can post the script more help can be given on this forum to find the issue. Otherwise check through commands in the script to see if any require selection on screen in the HyperMesh GUI or changes to displayed entities or display state.
Thanks,
Rob
Thanks a lot, Rob!
It worked.
0