Author Topic: Stereotype min width doesn't work  (Read 1765 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1239
  • Karma: +39/-2
    • View Profile
    • www.umlchannel.com
Stereotype min width doesn't work
« on: August 07, 2019, 07:57:58 pm »
Hello,

I created a UML profile with stereotyped UML components. To cater for the length of the stereotype, I set a min width via the SizeX stereotype property e.g. 200.
In the XML file, I get the cx="200" as expected.

This UML profile is delivered via an MDG. When I create the stereotyped components, the width remains the default one.

Any idea?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13143
  • Karma: +376/-299
  • I'm no guru at all
    • View Profile
Re: Stereotype min width doesn't work
« Reply #1 on: August 07, 2019, 08:18:25 pm »
Try a shape script with preferredWidth.

q.

David Rains (bioform)

  • EA User
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
Re: Stereotype min width doesn't work
« Reply #2 on: August 08, 2019, 12:33:33 am »
I have a similar issue, I am chasing on modifying the default "frame" size of the source element for the stereotyped image created with a shapescript...

Okay, got that working (redrew image to occupy 100X100 in X/Y in shapescript and adjusted shape proportions accordingly) then added...

   fixedAspectRatio = "true";    defsize(100,100);

When loaded via MDG, dragged onto diagram Frame Same size as Image... then used corner to shrink as needed.... changed the font, etc. since it is a package that I stereotype, once I adjusted it... I can't just copy and paste.... have to repeat those steps each time :( Could add some automation code later....


David
« Last Edit: August 08, 2019, 02:37:36 am by David Rains »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1239
  • Karma: +39/-2
    • View Profile
    • www.umlchannel.com
Re: Stereotype min width doesn't work
« Reply #3 on: August 09, 2019, 04:15:28 pm »
Thanks for your reply. I tried with the Shapescript but the UML component width is still the same. I'll you know if I find a solution once I've investigated further.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1239
  • Karma: +39/-2
    • View Profile
    • www.umlchannel.com
Re: Stereotype min width doesn't work
« Reply #4 on: September 18, 2020, 08:05:03 pm »
Reopening this thread, I found that it works when you set both the X and Y e.g. x = 110, y = 60.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com