Book a Demo

Author Topic: How to read the Details/Templates/ infos  (Read 3503 times)

fginfrance

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
How to read the Details/Templates/ infos
« on: October 03, 2009, 08:31:24 am »
Hi,

hope I did not oversee the obvious, but where in the Element class can I read out the infos from the Class/Details/Templates dialog?

Thank you in advance for any hint!
fginfrance

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to read the Details/Templates/ infos
« Reply #1 on: October 05, 2009, 09:05:41 am »
Have a look in EA.Element.MiscData(2). There should be a string like this which you will need to decode:

Code: [Select]
<PRM1>=parameter;<TYP1>=type;<DEF1>=default;
« Last Edit: October 05, 2009, 09:08:15 am by KP »
The Sparx Team
[email protected]

fginfrance

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How to read the Details/Templates/ infos
« Reply #2 on: October 07, 2009, 07:35:34 am »
Hi KP,

thank you for sharing this kind of "hidden gems". 8-)
In fact, it is this quality of the sparx forum that is in my opinion one of the key advantages of EA.

Had already tried before on MiscData, but abandonned.
With your hint, I inspected further and in fact it worked as soon as I realised that MiscData is not an String attribute, but must be called like a method (at least from my python wrapper)!

Now it gives me all I want! Thanks again!
fginfrance