Error in accessing card image of material in batchmode

User: "Akash Purushothaman"
Altair Community Member

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

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

Find more posts tagged with