hm_batchexportenginefile
Exports Radioss Engine and Starter files.
Syntax
hm_batchexportenginefile type filename export_template
Type
HyperMesh Tcl Query Command
Description
Exports Radioss Engine and Starter files.
Inputs
- type
- The type of file to write:
- filename
- The full path and filename of the output file. Paths with spaces must be enclosed in quotes.
- export_template
- 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.
Examples
To 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):
hm_batchexportenginefile 1 "C:/my_files/starterD00" "[hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]/feoutput/radioss/radioss110.blk"
To export both the Starter and Engine files separately (the Starter file is named starterD00 and the Engine file is named starterD01):
hm_batchexportenginefile 2 "C:/my_files/starterD00" "[hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]/feoutput/radioss/radioss110.blk"
To export both the Starter and Engine files as a single file (named starterD00):
hm_batchexportenginefile 3 "C:/my_files/starterD00" "[hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]/feoutput/radioss/radioss110.blk"
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0.130