🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Hyperview Legend

User: "Merula_20758"
Altair Community Member
Updated by Merula_20758

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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Merula_20758"
    Altair Community Member
    OP
    Updated by Merula_20758

    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!