Book a Demo

Author Topic: Getting only visilbe attributes  (Read 3790 times)

Erwin_Ahlers

  • Guest
Getting only visilbe attributes
« on: May 16, 2011, 04:59:55 pm »
Hello,
I'm using the automation interface to get several data from an open EA model. By this I got already a diagram and all the objects and links. When I'm now in a class diagram it would be nice to get a list of all the attributes which are shown in the diagram. With teh "Feature visibility" tool I can select which attributes I want to have displayed. But is there a way to get this information also via the automation interface?

Thanks in advance
Erwin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Getting only visilbe attributes
« Reply #1 on: May 16, 2011, 05:51:43 pm »
Erwin,

It is definitely possible to get this information, but you might need to use Repository.SQLQuery(sqlString) to get it if it is not exposed by the API's objects.

Geert

Erwin_Ahlers

  • Guest
Re: Getting only visilbe attributes
« Reply #2 on: May 17, 2011, 05:42:18 pm »
Hi Geert,
do you have an idea how to get this information? SQL might not be the problem. I even looked around already in the table structure but couldn't find the "visibility" information.

Erwin

abruckner

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Getting only visilbe attributes
« Reply #3 on: June 17, 2011, 04:27:12 pm »
If you're still interested in how this works, there are 2 post dealing with this topic on the european blog:

Part1: http://blog.sparxsystems.eu/2011/06/how-ea-stores-the-visibility-of-diagram-objects/
Part2: http://blog.sparxsystems.eu/2011/06/how-ea-manages-the-visibility-of-diagram-objects-2v2/

Conclusio: it might be a little tricky, to handle this with SQL alone.