A program to recognize and reward our most engaged community members
Hi,
I am using 2017.2.2 version of hyperworks. I need to run multiple files in batch mode in OPTISTRUCT.
How do I do that?
Hi Mayur,
I will check and update you soon.
Ok
4y no answer ?!
Batch HWhttps://2021.help.altair.com/2021/hwdesktop/altair_help/topics/tools/hvvh_batch_mode_r.htmhttp://www.hyperproc.com/hwhelp/2020/topics/reference/hwdref/batch_mode_run_hw_t.htm
a batch file that is usefull if You still change FEM files in notepad
:: BAT FILE THAT CAN BE USED TO CALL FEM SOLVER @ECHO OFF
:: Define proper paths set Path=%Path%;C:\Program Files\Altair\2021\hwsolvers\optistruct\bin\win64;C:\Program Files\Altair\2021\hwsolvers\common\bin\win64;C:\Program Files\Altair\2021\hwdesktop\hw\bin\win64\set filename=%1
:: define proper solveroptistruct_2021_win64 -help optistruct_2021_win64 %filename% -analysis
:: POSTPROCESSfor %%f in ("%filename%") do set filename=%%~nfset outfile=%filename%.outset spcfile=%filename%.forcetype %outfile%type %spcfile%
:: USER QUESTION FOR RUNNING HyperView:choiceset /P c=Do You Want open the HW [Y/N]?if /I "%c%" EQU "Y" goto :some_labelif /I "%c%" EQU "N" goto :some_else_labelREM else repeat question goto :choice:some_label::"C:\Program Files\Altair\2021\hwdesktop\hw\bin\win64\hw.exe" hw.exe %filename%.h3d:some_else_labelecho "I am here because you typed Y"pauseexit