Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Sunshine 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 (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.
-
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.
-
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.
-
Glad you figured it out :)
(and thanks for sharing the diagnosis/fix!)
-
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