🎉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

How to modify hyperview visualization

User: "RdelCuvillo"
Altair Community Member
Updated by RdelCuvillo

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

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "Varun Venkateswaran"
    Altair Employee
    Updated by Varun Venkateswaran

    You could add a statement like this

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

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

     

    User: "RdelCuvillo"
    Altair Community Member
    OP
    Updated by RdelCuvillo

    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. 

    User: "Varun Venkateswaran"
    Altair Employee
    Updated by Varun Venkateswaran

    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?

    User: "RdelCuvillo"
    Altair Community Member
    OP
    Updated by RdelCuvillo

    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!