ANSYS Workbench Mechanical Legend Display

  • Last Post 03 July 2018
  • Topic Is Solved
Muhammed posted this 03 July 2018

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.

Order By: Standard | Newest | Votes
peteroznewman posted this 03 July 2018

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.


  • Liked by
  • Muhammed
SandeepMedikonda posted this 03 July 2018

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.





  • Liked by
  • Muhammed
Muhammed posted this 03 July 2018

Thank you so much guys. You saved my day!