Author Topic: how to change default apperance for MDG stereotypes  (Read 984 times)

fausto bertoli

  • EA User
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
how to change default apperance for MDG stereotypes
« 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

fausto bertoli

  • EA User
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: how to change default apperance for MDG stereotypes
« Reply #1 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

PDC

  • EA User
  • **
  • Posts: 107
  • Karma: +4/-0
  • Systems Engineer
    • View Profile
Re: how to change default apperance for MDG stereotypes
« Reply #2 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.
Phil

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: how to change default apperance for MDG stereotypes
« Reply #3 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!