Author Topic: Synchronize stereotype  (Read 338 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Synchronize stereotype
« on: May 06, 2019, 01:19:44 am »
Hi,

I would like to simulate the action of synchronizing a stereotype from an Addin.
The action in EA is:
Go to toolbox tab -> choose any stereotype -> click Synchronize StereoType.

Is this action feasible threw the EA API?

Tzafrir

qwerty

  • EA Guru
  • *****
  • Posts: 10625
  • Karma: +233/-194
  • I'm no guru at all
    • View Profile
Re: Synchronize stereotype
« Reply #1 on: May 06, 2019, 03:29:03 am »
You could use Repository.SynchProfile (string Profile, string Stereotype)

unless someone threw it away  ;D

q.

Guillaume

  • EA User
  • **
  • Posts: 816
  • Karma: +22/-0
    • View Profile
    • www.umlchannel.com
Re: Synchronize stereotype
« Reply #2 on: May 06, 2019, 04:31:48 pm »
You can look at Geert's script here:
https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Framework/Tools/UML%20Profile/Synchronize%20Steretoypes.vbs

It runs Repository.CustomCommand method on a collection of stereotype.
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 10625
  • Karma: +233/-194
  • I'm no guru at all
    • View Profile
Re: Synchronize stereotype
« Reply #3 on: May 06, 2019, 05:32:28 pm »
Actually Repositor.Synchprofile had been opened to overcome the misuse of the undocumented Repository.CustomCommand.

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Synchronize stereotype
« Reply #4 on: May 12, 2019, 07:26:56 pm »
thanks for the help