Hypermesh element thickness visualization legend
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
Best Answer
-
Devdutt Shende said:
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.
1
Answers
-
*setoption should do the trick.
https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_setoption.htm
0 -
Ben Buchanan said:
*setoption should do the trick.
https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_setoption.htm
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.
0 -
Devdutt Shende said:
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.
1 -
Ben Buchanan said:
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.
0