Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: sherey 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!
-
You need to tweak a table's contents. t_diagram has the diagrams and the according ones have StyleEx set like
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
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.