Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: Robert de Wolff on October 01, 2012, 06:00:47 pm
-
I'm using EA 9.2.920 with a SQL 2005 backend.
We are making use of shapescrips for customizing the shapes. For some objects we cannot show the color defined in the script is shown! The same use case is shown differently on different diagrams.
The only solution I found is outside EA: Clear the field ObjectStyle in t_diagramobjects with SQL Enterprise manager.
-
How does your shape script look like?
q.
-
Here the shape script. This is script works most of the use cases. All new ones are immediately correct. Only some which colors were adjusted in the past aren't correct.
shape main
{
v_Align = "bottom";
h_Align = "center";
setpen('0','0','0','3');
drawnativeshape();
if(hasTag("Smart Use Case Stereotype"))
{
println("[#TAG:Smart Use Case Stereotype#]");
}
print("#ALIAS#");
}
-
Have you tried without the set pen? It might overwrite the manual color settings.
q.
-
Thx to Sparx I now understand the problem.
Element appearance can be modified via the Format Toolbar, or via the
Default Appearance option.
The Format Toolbar appearance will override the Default Appearance
setting.
Unfortunately there is no simpel functionality to clear the format toolbar appearance