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

After looking into your latest request further, I have determined that highlighting just that portion of the FormattedText is not going to be possible at this time.  The 'HoleThreadNote.Text' is a 'DimensionText' type object, and that is why we are able to change its color.  You can't change the color of a whole or partial String object, because it is just a data type.  And the text within the HoleThreadNote.FormattedHoleThreadNote is a string.  The 'formatting' within this string is controlled using XML tags.   XML is a data handling programming language, and wasn't really designed for showy stuff like HTML is.  I can change the Font, FontSize, Bold, Italic, and Underline of text within it, but I don't know of any options to change font color.  Here is the main reference for working with XML tags in Inventor's FormattedText applications.

 

I can however, within the HoleThreadNote.FormattedHoleThreadNote:

- find which ones have some text before the first "<" character, and what that text is

- find which ones have some text after the last ">" character, and what that text is

- I don't know of any 'default' hole callouts that use text after the last ">" character, but many of them use a symbol before the first "<" character, so even this check may not be that simple, if we were able to use it at all.

 

It seems your best bet is still going to be either highlighting all the text or using an actual HighlightSet to actually highlight (not just change the permanent color of) these HoleThreadNote objects, just to point them out.  Once you know something is possibly off about them, you can manually look into them.  It should still save you a little time.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE' :thumbs_up:.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)