Model.hm_batchexportenginefile#

Model.hm_batchexportenginefile(type, filename, export_template)#

Exports Radioss Engine and Starter files.

Parameters:
  • type (int) –

    The type of file to write:

    1 - Export Engine file only

    2 - Export Engine file and Starter model file separately.

    3 - Export Engine file and Starter model file as a single file.

  • filename (hwString) –

    The full path and filename of the output file. Paths with spaces must be enclosed in quotes.

    This is the Starter file name. The Engine file name is derived from this name.

  • export_template (hwString) – The full path and filename of the export template to be used. Paths with spaces must be enclosed in quotes. Required only for type=2 and type=3.

Returns:

Examples#

Export only the Engine file ( the Engine file name starterD01 is derived from the model file name starterD00 . starterD01 will be the name of the Engine file that will be exported )#
import hm
import hm.entities as ent
import hw

model = hm.Model()
model.hm_batchexportenginefile(
    type=1,
    filename="C:/my_files/starterD00",
    export_template=hw.appinfo("TEMPLATES_DIR") + "/feoutput/radioss/radioss2025.blk",
)
Export both the Starter and Engine files separately ( the Starter file is named starterD00 and the Engine file is named starterD01 )#
import hm
import hm.entities as ent
import hw

model = hm.Model()
model.hm_batchexportenginefile(
    type=2,
    filename="C:/my_files/starterD00",
    export_template=hw.appinfo("TEMPLATES_DIR") + "/feoutput/radioss/radioss2025.blk",
)
Export both the Starter and Engine files as a single file ( named starterD00 )#
import hm
import hm.entities as ent
import hw

model = hm.Model()
model.hm_batchexportenginefile(
    type=3,
    filename="C:/my_files/starterD00",
    export_template=hw.appinfo("TEMPLATES_DIR") + "/feoutput/radioss/radioss2025.blk",
)