Run a script from cmd windows

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

HI fellows,

 

i have a cool script which creates a parametric model and export a .inp. I was wondering how my colleagues could run the script  outside Hypermesh. I mean, i want them to run the script from cmd.exe of Windows system , no need to open Hypermesh interface but only from MSDOS windows.

 

Is it possible?

Thank you all :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited May 2016

    I don't remember option to start hypermesh without GUI

    but if you don't want to see it. in your cool script, add below command at beginning:

    wm withdraw .

    <your script commands>

    #quit hypermesh if no need to save hm file:

    destroy .

     

    so try start your session from cmd:

    <altairhome>\hm\bin\win64\hmopengl -tcl <your script file path>

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2016

    i found it:

    need to use batch mode writing:

    [HM's path] hmbatch –tcl<filename>

    no need to write *quit then

     

    Thank you Tinh, you always have a good answer. Best Hypermesh user i ever known