How can I make this script work ?
Best Answer
-
There are commands that the command file uses that are referred to as deprecated. The list of these can be found here https://2021.help.altair.com/2021.1/hwdesktop/hwd/topics/reference/hm/deprecated_tcl_modify_commands.htm
*createmark surfs 1 displayed
foreach SurfId [hm_getmark surfs 1] {
set CompName [hm_getvalue surfs id=$SurfId dataname=collector.name]
*createentity comps name=${CompName}_${SurfId}
*createmark surfs 1 $SurfId
*movemark surfs 1 ${CompName}_$SurfId }This should do the trick. I was not sure why you had the expr in there, so I removed it.
Hope this helps
0
Answers
-
There are commands that the command file uses that are referred to as deprecated. The list of these can be found here https://2021.help.altair.com/2021.1/hwdesktop/hwd/topics/reference/hm/deprecated_tcl_modify_commands.htm
*createmark surfs 1 displayed
foreach SurfId [hm_getmark surfs 1] {
set CompName [hm_getvalue surfs id=$SurfId dataname=collector.name]
*createentity comps name=${CompName}_${SurfId}
*createmark surfs 1 $SurfId
*movemark surfs 1 ${CompName}_$SurfId }This should do the trick. I was not sure why you had the expr in there, so I removed it.
Hope this helps
0