Author Topic: Resize element below default minimum size  (Read 4321 times)

Rainer Hoerbe

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Resize element below default minimum size
« 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Resize element below default minimum size
« Reply #1 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.

Rainer Hoerbe

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Resize element below default minimum size
« Reply #2 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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Resize element below default minimum size
« Reply #3 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.