How to change text style and size in Ansys Mechanical ?

Oussama.Hajjaj(OHA)
Oussama.Hajjaj(OHA) Member Posts: 2
Name Dropper First Comment
**
edited June 2023 in Structures

Hello everyone, do you think we can change the Tree objects text style or size in Ansys Mechanical using scripting?

I can manipulate the graphic labels using javascript, so i think it should exist something similar to do the same with text in Ansys Mechanical using javascirpt or Python.

I'am talking about this text , i can do it manually in the UI Options but i don't know how to do it using scripting .

"""

DS.Graphics.SetFontStyle( 0, 'David', 0, 0, 15, 0, 0 );

DS.Graphics.SetFontStyle( 2, 'David', 0, 0, 15, 0, 0 );

DS.Graphics.Redraw(1);

"""

and the code above is to manipulate the text in the Graphic (labels, ruler ...)

thank you for your feed backs

Best Answer

  • Pierre Thieffry
    Pierre Thieffry Member, Moderator, Employee Posts: 107
    25 Answers Second Anniversary 10 Comments 25 Likes
    ✭✭✭✭
    Answer ✓

    I'm afraid there no way to do this. Your font settings in Windows will influence Mechanical's display.

Answers