run tcl script on Hyperview start

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

Hi,

I have a tcl script and the tcl is using Hyperview library, so I must run it with Hyperview.

I want to run this script in another program, is there a way to start Hyperview and run tcl script using command line? And I also want to close the Hyperview when the script end.

Thanks!

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2016

    I found the command in HELP DOC:

     <altair_home>/hw/bin/<platform>/hw.exe -clientconfig hwpost.dat -b -tcl example.tcl

    -b

    Used in conjunction with either the -tcl or -c options to enable batch mode.  HyperWorks Desktop will exit immediately upon completion of the Tcl script or command file.

    -tcl <tcl_filename>

    Automatically run the specified Tcl script.  Notice that there is a space between -tcl and the filename.

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.