Author Topic: Synchronizing diagram types  (Read 2484 times)

sherey

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Synchronizing diagram types
« on: March 28, 2017, 05:24:37 am »
Hello,

I was wondering if there was a way to synchronize existing diagrams with an updated custom diagram type similar to how stereotypes can be synchronized?  I changed toolbox configurations in my mdg/profiles.  New diagrams show the new toolbox configurations, but the old diagrams don't.  Is there way to make my old diagrams show the new toolboxes?

Thanks!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Synchronizing diagram types
« Reply #1 on: March 28, 2017, 08:11:08 am »
You need to tweak a table's contents. t_diagram has the diagrams and the according ones have StyleEx set like
Code: [Select]
MDGDgm=Archimate2::Business;(for an Archimate diagram). If you change that to the new stereotype of your diagram you're done. Either use a native SQL client or write a small script like

Code: [Select]
sql = "UPDATE t_diagram SET styleEx="the new value" WHERE styleEx="the old value"
Repository.Execute(sql)
The function is (reasonably) not documented, but works. However, make a test in a sandbox before applying that in a production environment.

q.