ANSYS Workbench Mechanical Legend Display

  • 50 Views
  • Last Post 3 weeks ago
Muhammed posted this 3 weeks ago

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 3 weeks ago

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 3 weeks ago

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 );

DS.Graphics.Redraw(1);

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.

Regards,

Sandeep

 

 

  • Liked by
  • Muhammed
Muhammed posted this 3 weeks ago

Thank you so much guys. You saved my day!

Close