Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Tehila1 on April 28, 2015, 08:21:36 pm

Title: Shape Script- draw extended shape
Post by: Tehila1 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!
Title: Re: Shape Script- draw extended shape
Post by: qwerty on April 28, 2015, 09:21:08 pm
Try DrawParentShape()

q.
Title: Re: Shape Script- draw extended shape
Post by: Tehila1 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?
Title: Re: Shape Script- draw extended shape
Post by: qwerty 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.