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

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 456
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
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: 456
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    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()