running tcl file from dos

Marion_20756
Marion_20756 Altair Community Member
edited October 2020 in Community Q&A

Hi,

I have a tcl file for exporting a jpeg in Hypermesh that I want to run from dos using the command:

C:/.../hmopengl.exe -tcl filename.tcl

It runs without any errors, only the exported jpeg file is completely black. The command I used in de tcl file for exporting jpeg is *jpegfile.

When I remove *jpegfile from the tcl file and place this command into a new tcl file, run the old file (without *jpegfile) using the above dos command and then run the new file (containing only *jpegfile) from Hypermesh (using File -> Run -> Tcl script), the output looks ok.

Does anyone know what the problem is?

Marion

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2011

    problem maybe because of time delay, try putting a time delay before the *jpegfile command, like sleep 60

    - cae.developer@gmail.com