How to modify hyperview visualization

RdelCuvillo
RdelCuvillo Altair Community Member
edited June 2024 in Community Q&A

When I open HyperView and plot a contour, the legend is presented by default. It is possible to customize and save the legend. Afterwards, when you open a new file, you can load the previous TCL legend file.

Is it possible to modify the default parameters to always have the same format when you open a file? Specifically, can the TCL legend file be applied automatically without the need to manually load it each time?

 

image

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Varun Venkateswaran
    Varun Venkateswaran
    Altair Employee
    edited May 2024

    You could add a statement like this

    *DefaultPostContourLegendFile("<file_path>/custom_legend.tcl")

    in <install_directory>\hwdesktop\hw\prefinc\preferences_post.mvw

     

  • RdelCuvillo
    RdelCuvillo Altair Community Member
    edited May 2024

    You could add a statement like this

    *DefaultPostContourLegendFile("<file_path>/custom_legend.tcl")

    in <install_directory>\hwdesktop\hw\prefinc\preferences_post.mvw

     

    Dear Varun, 

     

    Thank you for the answer. However, I tried what you proposed addapting to my path and file name, but the default legend has not changed. 

    Indeed, I found this row and changed the path and file name.     DefaultPostContourLegendFile("c:/tmp/clegend.tcl")

     

    Is there any other option? for example, running this command in the start-in directory. If I run it once it has oppened, it works fine. 

    hwc result scalar legend import "<file_path>/custom_legend.tcl"

     

    Thank you in advance. 

  • Varun Venkateswaran
    Varun Venkateswaran
    Altair Employee
    edited June 2024

    The preference statement needs a * in front of it to become active, as shown in my example above. 

    *DefaultPostContourLegendFile("<file_path>/custom_legend.tcl")

    Could you please make sure you have added it?

  • RdelCuvillo
    RdelCuvillo Altair Community Member
    edited June 2024

    The preference statement needs a * in front of it to become active, as shown in my example above. 

    *DefaultPostContourLegendFile("<file_path>/custom_legend.tcl")

    Could you please make sure you have added it?

    Dear Varun, 

    You were right, and I was missing the *. This is because the original file does not have it.

    It works well. Thank you very much!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.