Book a Demo

Author Topic: too many stereotypes  (Read 4149 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
too many stereotypes
« 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?
Rolf

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: too many stereotypes
« Reply #1 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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: too many stereotypes
« Reply #2 on: October 02, 2017, 10:57:48 am »
Don't forget that connectors, attributes, operations and diagrams can also have stereotypes.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: too many stereotypes
« Reply #3 on: October 02, 2017, 05:11:12 pm »
Oh yes. I forgot that.

q.