Book a Demo

Author Topic: [Added support for shape scripted decorations]  (Read 4584 times)

gkathan

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • ...de-accelerat e...
    • View Profile
[Added support for shape scripted decorations]
« on: November 29, 2008, 12:22:51 am »
hej,
in build 833 you claim to have "added support for shape scripted decorations on UML 2.0 components". does this mean that:
* it is possible to e.g. take a UML2 component element and "enhance" it with some custom shapescripted things?
* if yes - where is it documented how it can be done
thänx
greetz from vienna,
gerold

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [Added support for shape scripted decorations]
« Reply #1 on: November 30, 2008, 04:10:38 am »
Hi Gerold,

Given how shape scripts work, I think this means something different. If you choose to use a shape script instead of having EA draw a component, you will be able to add a decoration. I believe this corrects an earlier bug with shape scripts that did not allow decorations on component elements.

Of course it would be best to run a quick test. Perhaps instead of doing something elaborate you could try shape scripting a component with build 833 and an earlier build. See what happens when you add a decoration in each build.

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: [Added support for shape scripted decorations]
« Reply #2 on: December 01, 2008, 08:50:21 am »
A decoration shape script is something that can be applied over the normal shape.

An example being

Code: [Select]
Decoration product {
      Orientation="W";
      SetFillColor(0,190,127);
      StartPath();
      Moveto(0,0);
      Lineto(80,0);
      lineto(100,50);
      lineto(80,100);
      lineto(0,100);
      lineto(20,50);
      lineto(0,0);
      EndPath();
      FillAndStrokePath();
}

You still need to add this to a stereotype and apply the stereotype for it to be shown.  This previously wouldn't have worked for components.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [Added support for shape scripted decorations]
« Reply #3 on: December 01, 2008, 11:01:13 am »
Thanks Simon,

That's pretty clear. I was trying to say something like that, but my foot got caught in my mouth, or keyboard, or both. [Oh no, it's happening again.]

David
No, you can't have it!