Book a Demo

Author Topic: shapescripts on Class don't work  (Read 5134 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
shapescripts on Class don't work
« on: May 30, 2020, 12:00:48 am »
I'm having a very weird issue with shapescripts.

I have a stereotype that extends Class.
On this stereotype I have defined a shapescript.

When I import my MDG and use this stereotype, I don't see the shapescript, it's just the default class shape.
I tried changing the shapescript, and using existing shapescripts that I know to be working but nothing seems to work.

When I extend my stereotype from Activity it works perfectly fine.

Trying to investigate further I even copied and pasted the whole <stereotype> part from ArchiMate3::BusinessActor in my MDG and changed the name to my stereotype name, but that didn't help either. I get the icon, and the background color, but not the shapescript.
(From ArchiMate3 this works just fine)

I have been breaking my head about this for more than an hour now.  :-\

Anyone have an idea what I'm doing wrong?

Thanks

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: shapescripts on Class don't work
« Reply #1 on: May 30, 2020, 12:27:57 am »
Look in the "wild" stereotypes if you have defined it there.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: shapescripts on Class don't work
« Reply #2 on: May 30, 2020, 01:09:50 am »
Look in the "wild" stereotypes if you have defined it there.

q.
Yes, during my run on the treadmill I was thinking the same thing. Will report back...

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: shapescripts on Class don't work
« Reply #3 on: May 30, 2020, 01:12:17 am »
Yes! that was it.
Before I made the profile I was experimenting a bit manually, which created the model stereotypes.

After deleting the culprits the shapescripts work as expected.

Have a nice weekend everyone!

Geert