legend and concontingency cloud map about hyperview

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

Hello, I have some questions that I hope you can help me to solve.          

 I want to automatically generate reports in the hyperview by coding. What I'm talking about is a model made up of several components.  

I don't know how to retrieve the component id that I want to hide, like the component called rbe2 , among all components.      

First of all, I want to hide the component named 'rbe2', write the code as follows,

   

   myres     SetCurrentSubcase  caseid
   myres     GetContourCtrlHandle cont

   cont        SetDataType Displacement
   cont        SetEnableState true
   cont        GetLegendHandle cont_dis
   cont_dis SetVisibility True
   mypost   SetDisplayOptions contour true
   mypost   SetDisplayOptions legend true
   mypost   Draw;

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.2c475eba830b5409ffdbe400e63a18a9.png

 

But in legend ,I don't want the deformation value of the elements in the 'rbe2' component that has been hidden. But it didn't work.         

Secondly, I don't know how to code for how to edit the legend of the contingency cloud map.  Can you give some examples. 

I hope to achieve the goal of legend as shown in the figure below.

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.ca0fc713ab32bd6ef36154673a30e415.png       

Thank you very much.