Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: fausto bertoli on July 18, 2025, 05:06:14 pm

Title: how to change default apperance for MDG stereotypes
Post by: fausto bertoli on July 18, 2025, 05:06:14 pm
I downloaded the Lieber c4 model from Sparx website
I tried to change the appearance of some stereotypes changing the attribute cx, cy and bgcolor inside the XML file before loading into EA
Changed cx and cy are taken into account but the bgcolor change don't work
I weant only to change the default appearance when the stereotype is created living the user the option to modify
thanks for your answer.
Fausto
Title: Re: how to change default apperance for MDG stereotypes
Post by: fausto bertoli on July 20, 2025, 11:47:21 pm
I see a lot of views on this topic, could someone of viewer reply to me with a solution  :)?
thanks in advance.
F
Title: Re: how to change default apperance for MDG stereotypes
Post by: PDC on July 23, 2025, 05:14:07 pm
I see a lot of views on this topic, could someone of viewer reply to me with a solution  :)?

This is normal for this forum I think - usually means that lots of other people have the same question and nobody has worked out how to solve it. Sadly for you, I am one of them! Hopefully one of the Clever Ones will log in soon and help you.
Title: Re: how to change default apperance for MDG stereotypes
Post by: Paolo F Cantoni on July 25, 2025, 10:12:22 am
I downloaded the Lieber c4 model from Sparx website
I tried to change the appearance of some stereotypes changing the attribute cx, cy and bgcolor inside the XML file before loading into EA
Changed cx and cy are taken into account but the bgcolor change don't work
I weant only to change the default appearance when the stereotype is created living the user the option to modify
thanks for your answer.
Fausto
Ciao Fausto,
The usual reason for this behaviour is that the shapescript contains a statement overriding the "default" value shown in the XML file.
Remember the definition of "default" is:  "In the absence of a countervailing instruction, do this...".  Unfortunately, the shapescript - hidden in the base64 encoding - contains that "countervailing instruction".  It would appear the shapescript doesn't have an override for the cx and cy values.
HTH,
Paolo