Author Topic: Get the stereotype default colour from the MDG  (Read 1349 times)

Guillaume

  • EA User
  • **
  • Posts: 654
  • Karma: +19/-0
    • View Profile
    • www.umlchannel.com
Get the stereotype default colour from the MDG
« on: January 10, 2018, 09:40:12 pm »
Hi,

I have a project running a custom UML profile via an installed MDG where UML stereotyped elements are displayed with custom colours.
Is there a way in a script via EA API to retrieve the current default bgcolor value on a given stereotype?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 9683
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Get the stereotype default colour from the MDG
« Reply #1 on: January 11, 2018, 12:26:53 am »
Not really (I think). MDG data are held in internal EA storage. Reading (and finding) the MDG XML file and decoding it along with the shape script is possible but I doubt the effort is worth it.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1187
  • Karma: +10/-3
  • Read The Help!
    • View Profile
Re: Get the stereotype default colour from the MDG
« Reply #2 on: January 11, 2018, 11:20:22 am »
Just hanging on to see qwerty's post count click over to 9000. Make it a good one, qwerty!
Best Regards, Roy

Guillaume

  • EA User
  • **
  • Posts: 654
  • Karma: +19/-0
    • View Profile
    • www.umlchannel.com
Re: Get the stereotype default colour from the MDG
« Reply #3 on: January 11, 2018, 07:47:03 pm »
It confirms what I thought. As a workaround I created array variables with the formatting definitions matching the stereotypes.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 9683
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Get the stereotype default colour from the MDG
« Reply #4 on: January 11, 2018, 07:58:47 pm »
Just hanging on to see qwerty's post count click over to 9000. Make it a good one, qwerty!

Oh. I just realize that the last one was a recommendation to contact Sparx support xD

q.