Batch Conversion Tools

Batch mode conversion is available for all solver interfaces.

To use batch mode conversion you must run a .tcl file in batch mode using hmbatch.exe.

Example: Convert Abaqus to OptiStruct

When running this .tcl file in batch mode, use the following commands in Windows and Linux:
<altair_home>/hm/bin/<platform>/hmbatch.exe -tcl </home/user/my_script.tcl>
## Bath mode conversion for Abaqus to Optistruct
## Note - Please keep the source model and script in the same folder
## Please replace XXXXX with name of the source deck and the destination files.

set altairHome [ hm_info -appinfo "ALTAIR_HOME" ]
set scriptFolder [ file dirname [info script] ]

*templatefileset "${altairHome}/templates/feoutput/abaqus/standard.3d"

*createstringarray 5 "Abaqus " "Standard3D " "LOADCOLS_DISPLAY_SKIP " "CONTACTSURF_DISPLAY_SKIP " "SYSTCOLS_DISPLAY_SKIP "
*feinputwithdata2 "#abaqus/abaqus" "${scriptFolder}/XXXX.inp" 0 0 0 0 0 1 5 1 0

# *readfile "${scriptFolder}/XXXXX.hm"

*solverconvert "Abaqus" "optistruct" "Standard3D" "optistruct" "1"

hm_answernext "yes"
*createstringarray 1 "HM_NODEELEMS_SET_COMPRESS_SKIP "
*feoutputwithdata "${altairHome}/templates/feoutput/optistruct/optistruct" "${scriptFolder}/XXXX.fem" 0 0 2 1 1
hm_answernext "yes"
Figure 1. Sample .tcl File