I created a script for creating and caching contour results.
It worked well when the script was run via File>Load>Script in HyperWorks.
However, when the script was run in batch mode, the countour results were not cached.
I would like to know the reason and the solution. Thanks.
Here's the script for caching contour results.
set ui [expr rand()]
hwi OpenStack
hwi GetActiveClientHandle my_client$ui
my_client$ui GetModelHandle my_model$ui [my_client$ui GetActiveModel]
my_model$ui GetResultCtrlHandle my_result$ui
my_result$ui CacheResult scalar
hwi CloseStack