Book a Demo

Author Topic: Cannot remove style from use cases  (Read 3432 times)

Robert de Wolff

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Cannot remove style from use cases
« 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.


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cannot remove style from use cases
« Reply #1 on: October 01, 2012, 07:39:08 pm »
How does your shape script look like?

q.

Robert de Wolff

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Cannot remove style from use cases
« Reply #2 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#");
 }

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cannot remove style from use cases
« Reply #3 on: October 02, 2012, 01:15:29 am »
Have you tried without the set pen? It might overwrite the manual color settings.

q.
« Last Edit: October 02, 2012, 01:17:18 am by qwerty »

Robert de Wolff

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Cannot remove style from use cases
« Reply #4 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