Hypermesh element thickness visualization legend

Devdutt Shende
Devdutt Shende Altair Community Member
edited March 2023 in Community Q&A

I am looking for a way to modify the element thickness legend through tcl commands / script. I need a way to set a standard thickness legend for consistency in model review. So far the only tcl command I have found in documentation is *reset_thickness_legend 

Welcome!

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

Best Answer

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 2023 Answer ✓

    Sorry for the late response.

    I tried it out in HyperWorks 2021.2 When using 

    *setoption thickness_legend_colors={1 2 3 4 5 6 7 8 9 10 11} 

    tcl return code is 1 but the colors don't show any change. Not sure if there is another option that enables/disables this. I am using discrete color mode if that helps. 

    Looks like the documentation is not up to date here. I was able to get it to work with an RGB color scheme.  Something like this:

    *setoption thickness_legend_colors={53 100 0 / 120 5 64 / }

    I figured this out by using hm_getoption thickness_legend_option to see what it gave me and it gave it in the format above.

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 2023
  • Devdutt Shende
    Devdutt Shende Altair Community Member
    edited March 2023

    Sorry for the late response.

    I tried it out in HyperWorks 2021.2 When using 

    *setoption thickness_legend_colors={1 2 3 4 5 6 7 8 9 10 11} 

    tcl return code is 1 but the colors don't show any change. Not sure if there is another option that enables/disables this. I am using discrete color mode if that helps. 

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 2023 Answer ✓

    Sorry for the late response.

    I tried it out in HyperWorks 2021.2 When using 

    *setoption thickness_legend_colors={1 2 3 4 5 6 7 8 9 10 11} 

    tcl return code is 1 but the colors don't show any change. Not sure if there is another option that enables/disables this. I am using discrete color mode if that helps. 

    Looks like the documentation is not up to date here. I was able to get it to work with an RGB color scheme.  Something like this:

    *setoption thickness_legend_colors={53 100 0 / 120 5 64 / }

    I figured this out by using hm_getoption thickness_legend_option to see what it gave me and it gave it in the format above.

  • Devdutt Shende
    Devdutt Shende Altair Community Member
    edited March 2023

    Looks like the documentation is not up to date here. I was able to get it to work with an RGB color scheme.  Something like this:

    *setoption thickness_legend_colors={53 100 0 / 120 5 64 / }

    I figured this out by using hm_getoption thickness_legend_option to see what it gave me and it gave it in the format above.

    Yep. That did it! Thank you so 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.