When using Mtext & Text.Contents to see the contents of the text objects in my drawings, it has a bunch of stuff before and after the actual text. I assume these are for syntax for CAD to understand the properties set for each text. However, I am trying to have a script convert all my text to uppercase (new standard at my work), and it’s adding that syntax to SOME of the text when I use (M)Text.SetContent.
As you can see it added the XQC; to the text once I ran my script. If all of these were consistent (i.e all XQC) I would filter it, but they’re not and they’re also not all consistently at the start of the string when using multi-line texts. So I don’t feel like I can filter it easily. Any ideas?
Instant edit: I see you mentioned that property before. It returns the text without control codes, but I think putting it back in the MText didn’t work quite well.