There are some issues pertaining to editing contour legend values in Mechanical. One solution is to add the user environmental variable in Windows, ANS_USE_OPENGL_LEGEND_EDIT to 1, from 2024R2. But, if it doesn't work, how can I create a python button in Mechanical that allows me to edit any contour legend value?