Hi
I have had an email from Sparx stating that this problem was fixed in version 11
This seems to be working a little better.
My shape script colours elements depending upon a tagged value (phase)
If my element is displayed on a diagram without rectangle notation and I change this tagged value the element changes to rectangle notation.
Is this expected behaviour?
My shape script -
shape main
{
if(HasProperty('rectanglenotation','0'))
{
if (HasTag("Phase","Unallocated"))
{
setfillcolor(255,192,203);
}
if (HasTag("Phase","1.0"))
{
setfillcolor(241,249,255);
}
if (HasTag("Phase","2.0"))
{
setfillcolor(195,226,255);
}
if (HasTag("Phase","3.0"))
{
setfillcolor(154,208,255);
}
if (HasTag("Phase","4.0"))
{
setfillcolor(112,188,255);
}
if (HasTag("Phase","5.0"))
{
setfillcolor(52,161,253);
}
if (HasTag("Phase","6.0"))
{
setfillcolor(2,138,252);
}
if (HasTag("Phase","7.0"))
{
setfillcolor(220,255,255);
}
if (HasTag("Phase","8.0"))
{
setfillcolor(134,241,255);
}
if (HasTag("Phase","9.0"))
{
setfillcolor(50,227,225);
}
drawnativeshape();
}
else
{
if (HasTag("Phase","Unallocated"))
{
setfillcolor(255,192,203);
}
if (HasTag("Phase","1.0"))
{
setfillcolor(241,249,255);
}
if (HasTag("Phase","2.0"))
{
setfillcolor(195,226,255);
}
if (HasTag("Phase","3.0"))
{
setfillcolor(154,208,255);
}
if (HasTag("Phase","4.0"))
{
setfillcolor(112,188,255);
}
if (HasTag("Phase","5.0"))
{
setfillcolor(52,161,253);
}
if (HasTag("Phase","6.0"))
{
setfillcolor(2,138,252);
}
if (HasTag("Phase","7.0"))
{
setfillcolor(220,255,255);
}
if (HasTag("Phase","8.0"))
{
setfillcolor(134,241,255);
}
if (HasTag("Phase","9.0"))
{
setfillcolor(50,227,225);
}
drawnativeshape();
}
}