Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
I see a lot of views on this topic, could someone of viewer reply to me with a solution :)?
thanks in advance.
F
-
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.
-
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