yanabunana
Mechanical
- Aug 1, 2019
- 6
I'm looking for a macro to change the font size on a dimension.
Can you please help us. Thanks.
Can you please help us. Thanks.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim myFontSize As Double
myFontSize = "6.5"
Dim myFontName As Double
myFontName = "SSS1"
set drawingtexts1 = catia.activedocument.sheets.activesheet.views.activeview.texts
Text_string = "Temporary text"
Set drawingText1 = drawingTexts1.Add(Text_string, 100, 100)
drawingText1.Text = Text_string
drawingText1.SetFontSize 0,0,myFontSize
drawingText1.SetFontName 0,0, myFontName