Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Rainer Hoerbe on March 15, 2024, 09:20:30 pm

Title: Resize element below default minimum size
Post by: Rainer Hoerbe on March 15, 2024, 09:20:30 pm
Wanting to resize an artifact element with an alternate image smaller than the default limit, I thought I could write a shape script. However, I could not find a complete reference that would explain how to do this in EAShapeScript.
Is there any guidance how to do this?
Title: Re: Resize element below default minimum size
Post by: qwerty on March 15, 2024, 10:08:52 pm
You can use DefSize(width,height) within a shape script. EA's algorithm to calclulate the actual size is a bit weird though and dependens on actual view settings and text lengths.

q.
Title: Re: Resize element below default minimum size
Post by: Rainer Hoerbe on March 16, 2024, 05:40:38 am
Thanks. So I created a stereotype this way, but I failed making it avaiable to my selected MDG technologies (UML, UML extended and threat modeling).  I read several documentation pages and queried AI bots, but found no conclusive way.
Title: Re: Resize element below default minimum size
Post by: qwerty on March 17, 2024, 12:14:06 am
Well, you can't. You need to create your own MDG to put the stereotyped element into. Maybe you can use template packages to utilitze your custom shape scripted element. But in the end an MDG is more future proof.

q.