HyperMesh Scripts Integration

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

Hi Can someone say whether HM Scripts can be integrated to Visual Studio .

 

Thanks. 

Answers

  • Merula_20758
    Merula_20758 Altair Community Member
    edited February 2016

    Hi,

     

    I do not know anything specific about the possibilities in Visual Studio with TCL Scripts, but you can do it like I use scripts in batch, if thats ok for you.

     

    simply state something like:

     

     String pathAltairHW = 'C:/Program Files/Altair/13.0/hm/bin/win64/hmopengl.exe'; Runtime.getRuntime().exec(pathAltairHW + ' -tcl ' +strProject +'/scripts/actualScript.tcl');

    That code is written in java, but I think you can make a translation easy into C or whatever it is you are using.

     

    Hope it helps,

     

    Best regards,

    Merula

  • tinh
    tinh Altair Community Member
    edited February 2016

    Hi Can someone say whether HM Scripts can be integrated to Visual Studio .

     

    Thanks. 

    Your question is not very clear.

    if you want to invoke HM and run some scripts, do it like Merula guide

    If you want to control it in vs, with tcl scripts, the interpreter is a C library provided all headers

    with HM there are just some header files (ext_api, hmin,...), limited number of functions.  looking for them in HM reference guide