Hi @M_Santi
If the style change is not acceptable then you can overide the font of the attribute manually then run formatted text code again and send it to the logger.Info(). The overide font should appear in the formatted text.

Dim doc As DrawingDocument = ThisApplication.ActiveDocument
Dim sht As Sheet = doc.ActiveSheet
Dim tb As TitleBlock = sht.TitleBlock
Dim tbSketch As Sketch
tb.Definition.Edit(tbSketch)
For Each txtBox As Inventor.TextBox In tbSketch.TextBoxes
If txtBox.FormattedText.Contains("CUST PART#") Then
Logger.Info(txtBox.Text)
Logger.Info(txtBox.FormattedText)
txtBox.FormattedText ="<StyleOverride FontSize='0.61'><Property Document='drawing' PropertySet='User Defined Properties' Property='CUST PART#' FormatID='{D5CDD505-2E9C-101B-9397-08002B2CF9AE}' PropertyID='5'>CUST PART#</Property></StyleOverride>"
End If
Next
tb.Definition.ExitEdit(True)
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan