Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: g.makulik on March 31, 2012, 02:35:25 am
-
Hi,
I have defined a shape script for a stereotype extending the Enumeration metaclass using DrawNativeShepe() in the main and a decoration.
But nothing is changed in the shape rendering when showing an instance in a diagram. Did anyone experience the same behavior? Is this a bug, or did I miss something??
Günther
-
Not sure if that's the problem, but you need to extend not only a class but also an object so your stereotype applies to both (assuming you are creating a MDG).
q.
-
Yup, I'm creating an MDG.
The stereotype in question currently extends the Enumeration metaclass.
I have added another extends relation to an Object metaclass, but nothing changed :( ...
Thanks for the hint though.
Günther
-
It might be a bug then. EA has a bag full of those...
q.
-
It might be a bug then. EA has a bag full of those...
Oooooh yes I know ... It's hard to distinguish if its your fault or Sparx' >:(
Günther
-
It might be a bug then. EA has a bag full of those...
q.
If you want to apply decoration the the Enumeration Class you have to disable some of the low-level MDG technologies (like the first three).
They seem to take over the rendering of Enumeration.
Once you figure out which one - you can decide you're in Catch-22...
Paolo