Author Topic: Shape Script- draw extended shape  (Read 2765 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Shape Script- draw extended shape
« on: April 28, 2015, 08:21:36 pm »
Shape Script expert is needed!

I would like to set color to a non-UML element, via shape script.
The following code draws the shape of parent of the non-UML element. e.g. Activity shape for the ArchiMate Service element
Code: [Select]
setfillcolor(255, 87, 87);
drawnativeshape();

I would like the shape to remain Service shape, but colored.
Any help would be highly appreciated!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Shape Script- draw extended shape
« Reply #1 on: April 28, 2015, 09:21:08 pm »
Try DrawParentShape()

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Shape Script- draw extended shape
« Reply #2 on: April 28, 2015, 10:06:19 pm »
Quote
Try DrawParentShape()

q.

Thanks.
Replacing drawnativeshape with DrawParentShape() indeed draws the derived shape, but without effect to the color definition.

Any ideas?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Shape Script- draw extended shape
« Reply #3 on: April 29, 2015, 01:00:29 am »
Report a bug (though it might be rejected for some reason). Alternatively draw a colored dot or something over the original rendering.

q.