Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Robert de Wolff on October 01, 2012, 06:00:47 pm

Title: Cannot remove style from use cases
Post 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.

Title: Re: Cannot remove style from use cases
Post by: qwerty on October 01, 2012, 07:39:08 pm
How does your shape script look like?

q.
Title: Re: Cannot remove style from use cases
Post by: Robert de Wolff on October 01, 2012, 07:45:25 pm
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.

Code: [Select]
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#");
 }
Title: Re: Cannot remove style from use cases
Post by: qwerty on October 02, 2012, 01:15:29 am
Have you tried without the set pen? It might overwrite the manual color settings.

q.
Title: Re: Cannot remove style from use cases
Post by: Robert de Wolff on October 02, 2012, 05:18:54 pm
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