Tcl's not running in batch mode

Lucas Costa_22045
Lucas Costa_22045 New Altair Community Member
edited January 2021 in Community Q&A

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

  • Robert Hoglund
    Robert Hoglund
    Altair Employee
    edited January 2021 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

Answers

  • Robert Hoglund
    Robert Hoglund
    Altair Employee
    edited January 2021 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

  • Lucas Costa_22045
    Lucas Costa_22045 New Altair Community Member
    edited January 2021

    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.