I have a script which tries to fetch the card image of the materials.
I am trying to filter the materials with card image type "MATERIAL"
In order to achieve this, I am using
hm_getvalue mats id=$mat_id dataname=cardimage
hm_getvalue mats id=$mat_id dataname=solverkeyword
These command works fine when I use in GUI mode.
But when I run the same command in batch mode this command returns
<None> for cardimage and empty string ("") for solverkeyword
The batch command that I use to call the script is as follows
start /min /wait "Script" "path/to/hw.exe" /clientconfig hwfepre.dat -b -tcl "path/to/script.tcl" -wait
This issue is observed in 2021 and 2023
This works fine for 2022
I need help to rectify this issue as executing via batch mode is the necessity
I hereby attach the tcl file for your reference
Thanks & Regards
Akash P