General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

The legend values are not changing.

TAGGED: 

    • UNI
      Subscriber

      No matter how many times I double-click, the keyboard cursor does not appear. Even pressing the Reset All button does not solve the problem.

    • SHELL
      Ansys Employee

      Hello,

      could you please check whether you can edit the legend through scripting, as a workaround?
      You can find how to use Mechanical scripting to change the legend in below article.
      https://discuss.ansys.com/discussion/513/working-with-legends-in-mechanical-scripting

      Please let me know if this helps.

      Best regards,

      Sascha

      • UNI
        Subscriber

        Thank you so much for replying faster than anyone else.
        Afterwards, I tried looking for other solutions, and I was able to resolve the issue using the method I found at this address.
        If I come across something I don’t understand in the future, I’d appreciate your help again.
        Have a great day!

        https://discuss.ansys.com/discussion/4498/how-to-edit-any-legend-value-with-a-ui-box-in-mechanical/p1?tab=accepted

    • Erik Kostson
      Ansys Employee

      Hi

      Thank you for the feedback - good to hear that this article helped.

       

      In order to help others, did you use environmental variable in Windows, ANS_USE_OPENGL_LEGEND_EDIT to 1, to resolve the issue?


      Thank you and all the best

       

      Erik

      • UNI
        Subscriber

         

         

        Hello Erik,
        First, the method I initially used was to go into Ansys Workbench (Mechanical) → Automation Tab → Manage and add the coding uploaded by Rohith Patchigolla, which creates a separate Contour Editor.
        After reading your post, I also tried adding the environmental variable ANS_USE_OPENGL_LEGEND_EDIT. With this method, I was able to confirm that the Edit button, which appears when right-clicking the Legend, also worked properly.
        In conclusion, both methods were successful. I hope this helps.

        https://discuss.ansys.com/discussion/513/working-with-legends-in-mechanical-scripting
        You can check Rohith Patchigolla’s coding at the above link.

         

         

Viewing 2 reply threads
  • You must be logged in to reply to this topic.