How to set Mechanical Graphics (Legend etc.) FontStyle using ACT?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How to set Mechanical Graphics (Legend etc.) FontStyle using ACT?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    You can use the DS.Graphics Class:

    ds = ExtAPI.DataModel.InternalObject["ds"]
    ds.Graphics.SetFontStyle(0, "Arial", 0, 0, 30, 0, 0)
    ExtAPI.DataModel.Tree.Refresh()