Author Topic: Question regarding uploading a new profile  (Read 1672 times)

tzafrir

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Question regarding uploading a new profile
« on: May 21, 2017, 06:35:23 am »
Hi,
I have 2 questions regarding the procedure of loading a new profile:

1. Is the command Synchronize Stereotype (available in EA menus) is available somehow through the EA API.

2. If there is a specific tag of a Stereotype in a profile and in the model it has values.
If you rename the tag, and load a new MDG profile.
What I want to do is recognize the old tag, copy its value to the new tag and delete the old tag.
The question is does this recognition can be done?

thanks.






Sunshine

  • EA User
  • **
  • Posts: 578
  • Karma: +40/-1
    • View Profile
Re: Question regarding uploading a new profile
« Reply #1 on: May 21, 2017, 08:09:10 am »
1. You can synch the stereotypes one at a time by right clicking in the tool box on the element and selecting synchronise stereotype.

2. Renamed tags will be added as new tags to existing stereotypes. The old tags will remain. You'll need to write your own script to copy the values and delete the old tags.

qwerty

  • EA Guru
  • *****
  • Posts: 9378
  • Karma: +146/-137
  • I'm no guru at all
    • View Profile
Re: Question regarding uploading a new profile
« Reply #2 on: May 21, 2017, 09:04:09 am »
1. Repository.SynchProfile

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8172
  • Karma: +193/-22
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Question regarding uploading a new profile
« Reply #3 on: May 21, 2017, 05:07:53 pm »
I have a script you can use to synchronize stereotypes:

https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Framework/Tools/UML%20Profile/Synchronize%20Steretoypes.vbs

You just need to fill in the stereotypes you need to be synchronized and the script does the rest.

Geert

Guillaume

  • EA User
  • **
  • Posts: 619
  • Karma: +18/-0
    • View Profile
    • www.umlchannel.com
Re: Question regarding uploading a new profile
« Reply #4 on: May 22, 2017, 11:19:07 pm »
I noticed that EA does not take into account renamed stereotypes so I had to define a script that lets the user enter the old & new stereotype name.
Once done, Geert's script can be run to update all stereotypes.

I didn't put a script to update tags as I left the users handle that, but it sounds sensible to write one.

Guillaume
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com