Author Topic: Applying custom stereotypes  (Read 308 times)

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1319
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Applying custom stereotypes
« on: May 21, 2025, 12:26:56 pm »
I added a custom stereotype to class using Settings > Reference Data > UML Types > Stereotypes as directed by the guide
https://sparxsystems.com/enterprise_architect_user_guide/17.1/modeling_languages/creatingcustomstereotypes.html
However, when I try to apply the stereotype I can't see it because they are filtered via perspective. I've tried changing perspective to different settings but still can't see the stereotype I created to apply to the class.

Using V17.1. Any help would be appreciated.
Happy to help
:)

PDC

  • EA User
  • **
  • Posts: 107
  • Karma: +4/-0
  • Systems Engineer
    • View Profile
Re: Applying custom stereotypes
« Reply #1 on: May 21, 2025, 06:05:49 pm »
Works for me in 1625, sadly don't have a 17.1 installation on this laptop but I'm sure I've had it work before in 17.1.
I created a test stereotype as you described, then when I select a Class Element on a diagram and use the Ellipsis (...) on it's Stereotype property the test stereotype is right there under Perspective='All Perspectives' and Profile='None'.

Are you using custom profiles/MDGs at all? Maybe the stereotype is hidden in a different profile/perspective somehow.

Phil

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1319
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Applying custom stereotypes
« Reply #2 on: May 24, 2025, 11:48:42 am »
Thanks for trying that out @PDC. I now see where the cause of the problem. In V17.0 and V17.1 there is no option to select Profile = 'None' thus local stereotypes in the model aren't listed.
In this case I was just wanting to try out a complex shapescript on a stereotype and so just adding the stereotype to the model so I could rapidly see the effects of the shapescript.

The shape script associated with stereotype was eventually destined for our ArchiMate Extension MDG which works fine as I can select the perspective and the profile to see the stereotypes.

I did try all the potential combinations of perspectives and profiles with no luck thus posting to this forum.

Looks like a bug to me so I'll raise a bug report in the near future.
« Last Edit: May 24, 2025, 11:58:49 am by Sunshine »
Happy to help
:)

PDC

  • EA User
  • **
  • Posts: 107
  • Karma: +4/-0
  • Systems Engineer
    • View Profile
Re: Applying custom stereotypes
« Reply #3 on: May 27, 2025, 05:15:57 pm »
Glad you figured it out :)
(and thanks for sharing the diagnosis/fix!)
Phil

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Applying custom stereotypes
« Reply #4 on: May 27, 2025, 05:54:27 pm »
Weird, just like PDC I tried it, and it works for me. I can select <none> as the profile and as such select my "floating" stereotypes.
(I do exactly the same as Sunshine, use such a stereotype when writing a shapescript. This to avoid having first to compile an MDG in order to see the results of my shapescript)

Geert