meshing in batch mode

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

Hi All,

I have to run in batch mode a tcl file, in which a meshing process is recorded.

Is there a guide or some tutorials?

The tcl is perfectly working if i run it from Hypermesh, but it doesn't if I use hmbatch.exe

 

Thanks,

Enrico

Answers

  • imoto
    imoto
    Altair Employee
    edited March 2019

    Hello @Enrico

     

    In most cases you have to load the template file, instead of select UserProfile.

    Please try to add the this line for beginning of your script.


    *templatefileset [file join [hm_info -appinfo ALTAIR_HOME] templates feoutput optistruct optistruct]

    Note: If you are not using OptiStruct profile, please change to your user-profile.

     

    Thanks,
    Imoto

  • tinh
    tinh Altair Community Member
    edited March 2019

    Hi All,

    I have to run in batch mode a tcl file, in which a meshing process is recorded.

    Is there a guide or some tutorials?

    The tcl is perfectly working if i run it from Hypermesh, but it doesn't if I use hmbatch.exe

     

    Thanks,

    Enrico

     

    Hmbatch.exe will call hmopengl.exe

     

    So you can call hmopengl.exe directly and hide its GUI by prepending this line:

    wm withdraw .

    And append 'exit' 

     

     

  • Enrico_20294
    Enrico_20294 Altair Community Member
    edited April 2019

    Thank you!