Hyperview Legend

Merula_20758
Merula_20758 Altair Community Member
edited October 2020 in Community Q&A

This time it seems easier to me but never the less I could need some guidance.

 

I was able to plot contours to different models but am struggeling with the legend.

It does not get visible with :

 

myContour1 GetLegendHandle legend1
legend1 setDefaultState true
legend1 setVisibility true

 

Does anyone know an example file for the legend creation in hyperview? I have a displacement and a stress plot.

 

Thanks in advance.

 

Best regards,
Merula

Answers

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    Found it... in case anyone is iterested:

     model GetResultCtrlHandle res
     res GetContourCtrlHandle con
     res SetCurrentSubcase 1
     res SetCurrentSimulation 2
     con SetDataType Stress
     con SetDataComponent 'vonMises'
     con SetDimensionEnabled shell true
     con SetLayer 'Max'
     con SetCornerDataEnabled false
     con SetAverageMode Advanced
     con SetEnableState true
     con GetLegendHandle lh

     lh SetVisibility true
     anim SetDisplayOptions contour true
     anim SetDisplayOptions legend true

     

    that was missing!