Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: GrahamL on June 19, 2020, 02:36:52 am

Title: shape script autosize depending on content
Post by: GrahamL on June 19, 2020, 02:36:52 am
Hi
My shape script contains some print statements to display text.
This text varies in length and I would like to size my element depending on the length of text. Is this possible?

Thanks
Title: Re: shape script autosize depending on content
Post by: qwerty on June 19, 2020, 03:42:34 am
There's a preferredheight/width attribute you can set. It sets the fixed(!) minimum size. You can not do that dynamically (even not with an add-in).

q.