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

Hi @RoyWickrama_RWEI.  Not sure if you ever figured out how to do your final request here or not, but here's a tip to help you figure out how to write the FormattedText portion of the code.  The FormattedText uses XML programming language within, so it's a bit tricky.  If you're not a pro at writing and understatding XML, usually the best to get your String formatted the way you want it is to use something like a MessageBox.Show(), MsgBox(), or InputBox().

Create the View label the way you want it manually on the drawing, then access it by code and show the oView.Label.FormattedText in one of those messages to youself.  That will show you exactly how it is formatted "behind the scene".  If you use either InputBox() or InputListBox() you will be able to select and copy the resulting string.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)