Book a Demo

Author Topic: Problem with Stereotypes--  (Read 3953 times)

themiyac

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Problem with Stereotypes--
« on: August 11, 2015, 04:57:52 am »
When a Stereotype is applied by appending to the GetStereotypeEx() string, using the fully qualified name of the stereotype i.e. MyProfile::StereotypeX then the existing stereotypes are overridden by the recently added stereotype for example if the stereotype is shown <<block>> prior to appending it will show <<StereotypeX>> once appended. This is a problem for us because if EA doesnt recognize the element as a block we cannot set tag values as elements. Can you please tell us what is happening in the background of GetStereotypeEx() and SetStereotype()

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Problem with Stereotypes--
« Reply #1 on: August 11, 2015, 05:04:31 am »
GetStereotypeEx will just return a comma separated list of all set stereotypes. Usually with SetStereotype EA should decompose the list and set the single stereotypes. You can do that manually as well by entering comma separated values in Stereotype. If it does not decompose you should probably report a bug.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem with Stereotypes--
« Reply #2 on: August 11, 2015, 08:51:20 am »
GetStereotype=Single Stereotype
GetStereotypeEx=Multiple Stereotypes
SetStereotype=Single Stereotype
SetStereotypeEx=MultipleStereotypes

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Problem with Stereotypes--
« Reply #3 on: August 11, 2015, 09:48:31 am »
Again I was sooo sure that StereotypeEx is r/o but it's r/w :-[

q.