Hi,
I am trying o write a script in HyperView.
My problem is I don't know how to plot the legend.
Below is my current code. I am able to apply displacement result on model but the legend doesn't show up.
clear
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle New
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
# load model #
client_handle AddModel 'D:/P-optistruct/rs/OS-1050/dissimilar.h3d'
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
client_handle SetDisplayOptions 'contour' true
model_handle SetResult 'D:/P-optistruct/rs/OS-1050/dissimilar.h3d'
model_handle GetResultCtrlHandle result_handle
result_handle GetContourCtrlHandle contour_handle
contour_handle SetEnableState true
contour_handle SetDataType 'Displacement'
contour_handle GetDataType
contour_handle GetLegendHandle legend_handle
legend_handle SetDefaultState True
legend_handle SetPosition upper left
client_handle Draw
window_handle Draw
hwi CloseStack
please give me some advice. Thank you