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: eric.smyth

Hi @eric.smyth.  This looks to me like a simple TextBox boundary not updating its size to fit its contents, and therefore is causing the text to wrap to the next line.  To test this theory, if you double click on the view label on the right, to bring up the Format Text dialog, then enter a single space in there somewhere, then delete that space, then click the OK button to accept the change, and close the dialog box, does that cause the contents to show up correctly?  If so, you may be able to simulate that same type of action to get it to update by code.  The DrawingView.Label (a DrawingViewLabel type object), does not have any built-in method for causing it to resize itself.  So, you may just need to adjust something about its contents after the fact, to get it to update its bounding box, to fit its new contents.  You could try changing its DrawingViewLabel.HorizontalJustification to a different variation of the HorizontalTextAlignmentEnum, then back again, and see if that works.  If not, you could try adjusting some other propery value momentarily, then setting it back.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)