How to change text style and size in Ansys Mechanical ?
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
-
I'm afraid there no way to do this. Your font settings in Windows will influence Mechanical's display.
0
Answers
-
@Pierre Thieffry or @Pernelle Marone-Hitz should be able to help you out with this!
0 -
Thank you for your help, @Chris Harrold @Pierre Thieffry .
We can change the font settings in the Option UI manually . So I assumed that it will be some trics to do the same with scripting .
0