Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: tzafrir on May 06, 2019, 01:19:44 am

Title: Synchronize stereotype
Post by: tzafrir 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
Title: Re: Synchronize stereotype
Post by: qwerty on May 06, 2019, 03:29:03 am
You could use Repository.SynchProfile (string Profile, string Stereotype)

unless someone threw it away  ;D

q.
Title: Re: Synchronize stereotype
Post by: Guillaume 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.
Title: Re: Synchronize stereotype
Post by: qwerty on May 06, 2019, 05:32:28 pm
Actually Repositor.Synchprofile had been opened to overcome the misuse of the undocumented Repository.CustomCommand.

q.
Title: Re: Synchronize stereotype
Post by: tzafrir on May 12, 2019, 07:26:56 pm
thanks for the help