Batch export of curves to file
Overview
This example script will use HW batch mode to load a session and (for example purpose) export the last curve data of each window on each page to an external file.
Pre-Requisite
Open attached session file "2022.0_example.mvw"
The script uses command "ses$ui LoadSessionFile" with a relative path, assuming the session is located in the same folder as the script file. You can use an absolute path to the session file as shown as commented info in the same section of the script (see text editor).
For the export folder also the relative path is used with command "ses$ui ExportCurves". The exported file with curve data is written to the same folder location as the script.
The script uses hw.exe which is still available after HW version 2023, where no classic GUI is available anymore.
Alternatively use the newer runhwx.exe based on nextGen version (see below).
Usage/Installation Instructions
With curve data present in the session, run the script from a shell
e.g. on Windows by (adapt path to Altair installation)
\HW2022.3\hwdesktop\hw\bin\win64\hw.exe -b -tcl .\Batch_export_curve.tcl
or after v2023.0
\HW2023.1\hwdesktop\hwx\bin\win64\runhwx.exe -client HyperWorksDesktop -plugin HyperworksPost -profile HyperworksPost -l en -clientconfig hwpost.dat -sf plugins/hwd/resources/splashHyperView.png -b -tcl .\Batch_export_curve.tcl
See that a file "Batch_export_curve_output.dat" is written to the script location.
This file contains the curve data and can be re-loaded into HyperGrph again for plotting.