Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: Rossco44

So to make an in file edit without adjusting the styles you will need to override the style. You can do this with formatted text. I suggest to make a text box manually then adjust text /font as required then check out its formatted text.

 

The rule below will target the first text box on a sketch on a drawing. 


Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim
oSketch As DrawingSketch = oDrawDoc.ActiveSheet.Sketches(1)
Dim oTextBox As Inventor.TextBox = oSketch.TextBoxes(1)
sFormattedText = InputBox("","FormattedText",oTextBox.FormattedText)

You can also just put the text in as a general note and eliminate the need for a sketch which is a little unnecessary. See example here.

The same principle of formatted text will apply to that object also. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan