Does Hypermesh have a batch mode for running python scripts?

William Kuo_21386
William Kuo_21386 Altair Community Member

I am using Hypermesh 2025. I am migrating from .tcl scripts. I have a fully written python script that I want to run from the command console without the GUI. Previously, this was done with .tcl scripting but I don't see the python alternative for running Hypermesh in batch mode.

Is there no option to run Hypermesh in batch mode with a python script yet?

Answers

  • Fred_Juras
    Fred_Juras
    Altair Employee

    Hello William,

    Sure, you can run python script for HyperMesh in batch mode using -b and -f with the following commands : 
    <altair_home>\hwx\bin\win64\runhwx.exe -client HyperworksDesktop -plugin HyperworksGeneral -profile HyperworksGeneral -b -f <python_file_path>

    For instance:
    D:\Altair\2025\hwdesktop\hwx\bin\win64\runhwx.exe -client HyperworksDesktop -plugin HyperworksGeneral -profile HyperworksGeneral -b -f D:\batch_temp.py

    Please review this article for more details:
    https://community.altair.com/discussion/60961/get-the-arguments-under-control-running-hypermesh-2025-in-batch-with-python

    Regards,
    Fred.

  • William Kuo_21386
    William Kuo_21386 Altair Community Member
    edited April 14

    Hi Fred,

    I've tried that method and related posts to batch processing. None has worked so far.

    When I run it as this, it prints "hello" just fine:

    "C:\Program Files\Altair\2025\hwdesktop\hwx\bin\win64\runhwx.exe" -client HyperworksDesktop -plugin HyperworksGeneral -profile HyperworksGeneral -f D:\check.py

    image.png

    However, nothing shows in the command prompt or task manager when I run it with "-b":

    "C:\Program Files\Altair\2025\hwdesktop\hwx\bin\win64\runhwx.exe" -client HyperworksDesktop -plugin HyperworksGeneral -profile HyperworksGeneral -b -f D:\check.py

    image.png

    I expect to see it print "Hello" as I would with a -tcl script, but nothing happens.

    I may be wrong, but it seems like Hypermesh 2025 desktop does not have "-b" as a working feature for me.

    Sincerely, William

  • William Kuo_21386
    William Kuo_21386 Altair Community Member

    Is there anyway I can get further assistance on this issue?

    Sincerely, William