12-07-2022
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-07-2022
07:44 AM
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
Or if this helped you, please, click (like)
Regards
Alan