Book a Demo

Author Topic: [Shape script] modify fillcolor of native shape  (Read 3260 times)

McBie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
[Shape script] modify fillcolor of native shape
« on: July 09, 2009, 03:12:04 am »
Hi everybody,
I'd like to some modify the visual appearance of elements with a certain tagged value. So I created a stereotype and assigned  a shape script.
 The script looks like this:
Code: [Select]
shape main
{
      if (HasTag("EPDMPhase","1_A"))
      {
            setFillColor(128,255,128);
            drawnativeShape();
      
      }else{
            drawnativeShape();
      }
}

The funny thing is in the diagramm only the left half of an element is filled with my color.

Any Ideas?

Thanks!

mArco

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: [Shape script] modify fillcolor of native shap
« Reply #1 on: July 09, 2009, 08:49:50 am »
It's to do with the gradients on the elements.  You can get it right by turning off gradients or by getting the latest version of EA.