Book a Demo

Author Topic: Inherit tagged values etc from a single stereotype?  (Read 2793 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Inherit tagged values etc from a single stereotype?
« on: October 25, 2019, 07:42:54 am »
Hey all

I am creating a number of stereotypes which will share a set of common:

* Tagged values.
* Diagram properties.
* Shape script.

Is there a way to define an abstract stereotype to allow each of my stereotypes to inherit from this?

I have tried creating a "base" stereotype with my set of common tags, diagram properties and shape script and then creating a stereotype that extends this.
It seems to inherit tagged values but not the shape script nor the diagram properties.

Cheers

Jays :-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Inherit tagged values etc from a single stereotype?
« Reply #1 on: October 25, 2019, 02:26:04 pm »
You'll have to use a generalization between your base stereotype and the sub-stereotypes.

Geert

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Inherit tagged values etc from a single stereotype?
« Reply #2 on: October 29, 2019, 05:46:23 am »
Hey Geert

This doesn't seem to cause the child to inherit diagram properties or the shape script.
Is that what you would expect?

Cheers

Jays :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Inherit tagged values etc from a single stereotype?
« Reply #3 on: October 29, 2019, 09:50:05 am »
I remember issues with inheritance in stereotyped being discussed here. Since shape scripts generally are more the cut and paste type I got used to that. Just drag the attributes from your "mother stereotype" onto the "children" on a diagram to make a copy (and delete the old ones first).

q.