Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ngong on October 01, 2017, 03:44:03 am

Title: too many stereotypes
Post by: ngong on October 01, 2017, 03:44:03 am
Is there a way to identify and delete all stereotypes from a model which are not backed-up by an imported profile?
Title: Re: too many stereotypes
Post by: qwerty on October 01, 2017, 05:23:06 am
Not an easy one. You can query the existing ones by something like
Code: [Select]
select stereotype from t_object group by stereotype and use the result to get rid of the stereotypes that are not listed there. But that would only work if you have singular stereotypes assigned. In case you have elements with multiple stereos you need
Code: [Select]
select description from t_xref where name = "Stereotypes"and dissect the different values in the CSV of Description.

q.
Title: Re: too many stereotypes
Post by: Paolo F Cantoni on October 02, 2017, 10:57:48 am
Don't forget that connectors, attributes, operations and diagrams can also have stereotypes.

Paolo
Title: Re: too many stereotypes
Post by: qwerty on October 02, 2017, 05:11:12 pm
Oh yes. I forgot that.

q.