General Mechanical

General Mechanical

ANSYS Workbench Mechanical Legend Display

    • Muhammed

      Hi everyone.

      I am trying to increase the font size of the legend in the Ansys Workbench Mechanical. What is the solution for this? 

      Any help is appreciated.

      Thanks in advance.

    • peteroznewman

      Do you only need the font larger when doing a screen grab to paste the plot with legend into a report or presentation?

      If so, you can use the Image to File button.


      Then type a Font Magnification Factor. I typed in a 4 instead of a 1.

      You can also check to use a White Background here.


    • Sandeep Medikonda
      Ansys Employee

      Hi Muhammad,

      You can also write a simple macro such as:

      DS.Graphics.SetFontStyle( 0, 'Arial', 0, 0, 30, 0, 0 );

      DS.Graphics.SetFontStyle( 2, 'Arial', 0, 0, 30, 0, 0 );


      Note that the default font size is 16 and here we are changing it to 30 using index 2.

      Lastly, You need to save this macro as a file named “SampleFont.js” in a convenient location. Then from within Mechanical: Tools> Run Macro > SampleFont.js.

      Hope this helps.





    • Muhammed

      Thank you so much guys. You saved my day!

    • Manasseh Victor

      Can i change the font style from normal to Bond/underline/italic?

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