NO, I specifically excluded ALL but my active MDG
You prevented them from showing in the toolbox etc. That's all that option does. The other technologies are explicitly still available to ensure existing models using them still appear correct.
That's a strange use of the term "Active". I thought unmarking the MDG list stopped the toolboxes from appearing. Since you can ONLY set ONE of any enabled MDGs to be active I would have thought, by definition, "All enabled MDGs are created equal, but the active MDG is more equal than others". But in these post-truth times, I guess anything goes.
I understand (and agree) that the other technologies should be available to ensure existing models still render correctly. BUT we're NOT talking about existing models, we're talking about new arcs! Surely, EA should try to match the stereotype in the MDG of the diagram the arc is being created on? If not, then we're really NOT on planet Sparx.
If you need any more proof that "She Brok"! (as my mum would say...)
We have code that creates 5 composition arcs in a loop. Before the test, the general stereotypes are cleared of the specific MDG related uniquely named stereotype ("Cmpstn"). The test is run and "lo and behold", the
first arc (by ID) creates a new general stereotype whose value is the unique name "Cmpstn" and the arc is created with a t_xref entry referencing a GUID. Now for the REALLY BROK bit... The
subsequent 4 arcs have been created with the correct MDG FQName t_xref entry! Go figure!
What a way to build a battleship!
By definition, it should look in my (Active) MDG FIRST then if not found, look elsewhere! What so hard about that concept?
The concept is easy. The problem is that your definition doesn't match the actual definition of that option.
Does this process ENSURE you DON'T get a general stereotype anomalously created? That is, it will NOT (in your experience) create "MyProfile::Goal" (as we have seen).
From 1425, EA blocks creation of new stereotypes containing "::". You shouldn't see them created. The other thing I would suggest is to disable the Configure Stereotypes for all users. This will prevent extra stereotypes being defined from typos etc.
As Geert said, always use the fully qualified name. If you don't, EA will try to guess your meaning. And it will probably get it wrong.
Where is the use of the fully qualified name documented?
So I tried to do what is suggested in VBScript
foundConnector.Stereotype = stereotype
foundConnector.StereotypeEx = "MDG::" & stereotype
Setting the breakpoint at the second statement, foundConnector.Stereotype is set to the value of the Stereotype ("Cmpstn").
After the StereotypeEx assignment, both foundConnector.Stereotype and foundConnector.StereotypeEx are set to empty string! I'm assuming that's NOT supposed to happen. So what, if anything am I doing wrong?
Exasperated,
Paolo
PS: the caching issue around scripts and debug vs non-debug mode aren't helping and adding to the exasperation!