Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: csousa on September 11, 2013, 07:38:24 am

Title: Shape Scripting on Top of an MDG?
Post by: csousa on September 11, 2013, 07:38:24 am
Does anyone know if it is possible to add shape scripts on top of elements that are defined as part of an MDG?

Example: "I want to convey a tagged value within an Archimate Work Package"

I know how to do this with stereotypes that we control directly but I am unsure about MDG elements.
Title: Re: Shape Scripting on Top of an MDG?
Post by: qwerty on September 11, 2013, 07:49:59 am
Not sure I understand your question. But shape scripts are a usual way to modify the shape of stereotyped elements through MDG. If you extend a shape scripted element by your own MDG then your shape script should be taken instead of the base MDG. (I have never done it, but it seems logical.)

q.
Title: Re: Shape Scripting on Top of an MDG?
Post by: Eve on September 11, 2013, 09:05:44 am
Define a shape script as normal for a stereotyped element.

To preserve the existing shape you can call drawparentshape().