How is the thickness of PSHELL in properties changed from .bat and .tcl files?
Hi, there,
I use HyperMesh 2019 in Windows 10. I want to change the thickness T of PSHELL in Properties with .bat and .tcl files automatically. I used the bat and tcl files below.
- changethickness.bat
cd /d %~dp0
"C:\Program Files\Altair\2019\hm\bin\win64\hmbatch.exe" -tcl change.tcl
- change.tcl
set tps 10
*readfile changethicknesstest.hm
*setvalue props name="PSHELL BATCHTEST" STATUS=1 95=$tps
*writefile changethicknesstest.hm 1
However, when changethickness.bat is executed from command prompt, the error is shown below.
Altair HyperMesh v2019.0.0.70
Copyright (C)1990-2019 - Altair Engineering, Inc. All Rights Reserved.
Contains trade secrets of Altair Engineering, Inc. Copyright notice does not
imply publication. Decompilation or disassembly of this software is strictly
prohibited.
Error: Data-name or numeric code is not valid
0
while executing
"*setvalue props name="PSHELL BATCHTEST" STATUS=1 95=$tps"
(file "change.tcl" line 3)
invoked from within
"source change.tcl"
End of command file - terminating.
HM exiting with code 1
Although I try to run the same tcl file from GUI (File > Run > Tcl/Tk Script), it works normaly. When the line 3 is deleted from the tcl file, the bat file is executed also. Therefore, *setvalue does not work only when it is executed by bat file.
How do I change the thickness with bat and tcl files?