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: AMN3161

Tip:  You can use an InputBox to show yourself what the current contents of the FormattedText is, and have that text be selectable, so you can copy/paste portions of it back into your rule, by simply supplying it as the 'default entry' Input variable.

 

Is each line of text its own TextBox, or are all the linens of text all part of one large TextBox?

If each line is its own TextBox, you can loop through each TextBox, checking FormattedText.Contains("what you're looking for") (as Boolean), to find the Property you're looking for.  Each standard Property has a DisplayName, a Name, a PropID (Long).

And the PropID can be cross referenced with these Enums:

PropertiesForSummaryInformationEnum Enumerator

PropertiesForDocSummaryInformationEnum Enumerator

PropertiesForDesignTrackingPropertiesEnum Enumerator

There is also one for the custom properties, but it doesn't contain any values by default:

PropertiesForUserDefinedPropertiesEnum Enumerator

 

Also, FYI:  Here is the link to Inventor's help page which attempts to show you how to use XML tags to manipulate FormattedText scenarios.

 

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

If you have time, please... Vote For My IDEAS :light_bulb:or you can Explore My CONTRIBUTIONS

Inventor 2021 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)