Author Topic: Synchronize stereotyped connectors from the API -> enum not updated  (Read 14610 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1328
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Hi,

I use a similar script to the one published by Geert to call the stereotype sync method on all stereotyped elements and connectors: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Framework/Tools/UML%20Profile/Synchronize%20Steretoypes.vbs.

I noticed that it doesn't update enumeration tagged values for stereotyped connectors:
- with the initial version of the MDG, I create a stereotyped connector and select the enum value from 1,2,3
- I update the MDG (new enum list of values: 1,2,3,4,5)
- The drop down list is no longer available on the existing connector's tagged value (sync needed).
- I run the script: nothing happens
- I manually synchronize it from the toolbox: it works.

Guillaume

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


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8561
  • Karma: +254/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Synchronize stereotyped connectors from the API -> enum not updated
« Reply #1 on: November 11, 2021, 09:09:08 am »
Hi Guillaume, this may be because of a unique design decision made by the Sparxians.
Check t_objecpropertiess for those tags that have the changed enum. You should the original enum values are set in the Notes field.  "Nuke" the notes field and the enum should return OK.
We nuke ALL such "annotations", they seem spurious to us.


HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!