Try the following code. At the beginning of the code you can place the font you need, the height and whether it is bolt or not.
Generally the content of the text tends to seem confusing, I have tried to adjust it to make it understandable. The properties are from the view model, I hope they are correct.
I hope this helps in your work
Dim oFSize As Double = 0.6
'"Times New Roman" "Technic" "Tahoma" "TechnicBolt"
Dim oFont As String = "Times New Roman"
Dim oBolt As String = "False" '"True"
Dim oDraw As DrawingDocument = ThisDoc.Document
Dim oSheet As Sheet = oDraw.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews(1)
Dim oFontText As String = "<StyleOverride Font='" & oFont & "' FontSize='" & oFSize & "' Bold='" & oBolt & "'>"
Dim oText As String = "Pos: <Property Document='model' PropertySet='Inventor Summary Information' Property='Comments' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='6'>COMMENTS</Property><Br/>Material: <Property Document='model' PropertySet='Design Tracking Properties' Property='Material' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='20'>MATERIAL</Property> <Property Document='model' PropertySet='Design Tracking Properties' Property='Catalog Web Link' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='23'>WEBLINK</Property><Br/>Thickness: <Property Document='model' PropertySet='Design Tracking Properties' Property='Vendor' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='30'>VENDOR</Property><Br/>Qty: <Property Document='model' PropertySet='Inventor Document Summary Information' Property='Company' FormatID='{D5CDD502-2E9C-101B-9397-08002B2CF9AE}' PropertyID='15'>COMPANY</Property>"
oView.Label.FormattedText = oFontText & oText & "</StyleOverride>"
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn