Hello,
I've been using the new HWC language in Hyperview and find it very useful! Is there any logical statements (if/then/else) based on variables or loops (for/foreach/while) available in that language? Or are we required to use TCL and then invoke HWC commands there? I find TCL much harder to use. I'm looking for instance for a way to loop on all time steps or Eigen modes to create plots. Today, I do it by manually copying the same code multiple times and use variables to store filename prefix/sufix similar to this:
config reset
config variable savedir "D:/Workdir"
config variable sufx "_rh_disp"
#
config variable modenum "1"
result subcase "Vibration mode %{modenum}"
result simulation 1
save image window %{savedir}/Mode0%{modenum}%{sufx}.png
animate start
save animation page %{savedir}/Mode0%{modenum}%{sufx}.gif
#
config variable modenum "2"
...
Thanks,
Christophe