4
« on: September 01, 2020, 12:53:18 am »
Ok, here's the test case.
I have an element (it's selected in the project browser) without any operation. After running following script (adding a new operation and setting it's stereotype) I can see new operation, but no tagged values on it. But when uncommenting the last row of the script (synchronization of the stereotype), I can see all the tagged valued.
Dim elm As EA.Element
Dim meth As EA.Method
Set elm = Repository.GetTreeSelectedElements(0)
Set meth = elm.Methods.AddNew("OPER1", "")
meth.StereotypeEx = "aaBIF metadata::Phase_Basic"
meth.Update
elm.Methods.Refresh
'Repository.CustomCommand "Repository", "SynchProfile", "Profile=aaBIF metadata;Stereotype=Phase_Basic;"
And now tell me what I'm doing wrong.