Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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?
-
Not an easy one. You can query the existing ones by something like
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 needselect description from t_xref where name = "Stereotypes"and dissect the different values in the CSV of Description.
q.
-
Don't forget that connectors, attributes, operations and diagrams can also have stereotypes.
Paolo
-
Oh yes. I forgot that.
q.