Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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?
-
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.
-
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.
-
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.