Book a Demo

Author Topic: Tagged Value Type Format loaded from MDG  (Read 4237 times)

mlk

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Tagged Value Type Format loaded from MDG
« on: January 12, 2013, 08:44:07 pm »
Problem: no information about format of TVT built in MDG at runtime

Context: Addin needs to know uppon what definition
(i.e.
"Type=Enum;
Values=Val1,Val2,Val3;
Default=Val2;
")
some tag is based on (if at all)

Description: Tagged Value Type (TVT) format for project's data is stored in t_propertytypes table. MDG stereotype tagged values enumerations for existing elements can be seen in [t_objectpropertes.Note] column (i.e. "Values: true,false Default: false")
...But what about tagged value types defined in MDG and loaded at runtime from MDG XML?

Any Tips (SQL, automation code, ...) Appreciated!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged Value Type Format loaded from MDG
« Reply #1 on: January 12, 2013, 10:23:30 pm »
AFAIK any MDG information is dynamically loaded and stored in EA. So your only chance is to open the MDG yourself and parse its contents.

q.

mlk

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Tagged Value Type Format loaded from MDG
« Reply #2 on: January 13, 2013, 03:26:28 am »
I thought so. I hoped there is either an API or some magic work-around. Parsing MDG XML it's not a bypass, because I would have to parse all active MDGs. It's not a nice day :-[

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged Value Type Format loaded from MDG
« Reply #3 on: January 13, 2013, 03:34:44 am »
I think that opening the MDG from the API is something that should be added. Especially the crude tagged values GUID handling is something that needs to be provided via the API.

q.