I would like to run multiple Thermal/Flow xml files from a script and have each file run sequentially. How can I do this.
Solution
Currently you can do this using the TMG Executive GUI menu. If you want to do this from a command line the following script will read the models.txt file and run each job in order. Each XML file must be listed on it's own line and the script needs to be edited to match your installation.
Here is an example models.txt file:
---------------------------------------------------------------------------
E:\dir1\model1.xml
E:\dir2\model2.xml
E:\dir2\model2.xml
E:\dir2\model2.xml
And here is the example script. Each line will need to be edited to match your installation:
solve_multiple_xml.cmd
---------------------------------------------------------------------------
set UGII_TMG_DIR=D:\apps\SC\2019.2\NXCAE_EXTRAS\tmg
set SPLM_LICENSE_Server=28000@license_Server
for /f "usebackq tokens=*" %%A in (e:\run\models.txt) do %UGII_TMG_DIR%\com\tmgnx.cmd nf -inPath %%A
Notes