Author Topic: Visibles attributs and associations in diagram  (Read 4183 times)

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Visibles attributs and associations in diagram
« on: February 28, 2014, 09:12:53 pm »
Hello,

I would like to know how to detect attributes et associations visibles in a diagram thanks to EA API.

Thanks a lot,
Solenn

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Visibles attributs and associations in diagram
« Reply #1 on: February 28, 2014, 09:31:33 pm »
For connectors you should check DiagramLink.
For attributes you'll have to look somewhere in the guts of the DiagramObject. Somewhere deep inside there (probably a field called "styleEx" or something like that) you'll probably find a ";" separated list of (partial) attribute guid's that it has to either show or hide.

Geert

PS. Yes it's that ugly ::)

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Visibles attributs and associations in diagram
« Reply #2 on: February 28, 2014, 09:53:14 pm »
Hello,

I have nothing in DiagramObject in my diagram.
It's really strange.

I found connectors in DiagramLink.

Do you have an other solution?

Thanks a lot,
Solenn

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Visibles attributs and associations in diagram
« Reply #3 on: February 28, 2014, 10:09:00 pm »
Hello,

I was wrong, I have list of elements in diagramObject.
I think, I will find attribute show or hide in the style.

Thanks a lot,
Solenn

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Visibles attributs and associations in diagram
« Reply #4 on: March 01, 2014, 12:45:12 am »
Hello,

In fact, in the style of the diagramObject I have "DUID" which is DUID (the Diagram Unique ID of the diagram object).
I don't have the list of attributes.

I am searching in the diagram and diagramObject but I don't find the information.

Could you help me?

Thanks a lot,
Solenn

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Visibles attributs and associations in diagram
« Reply #5 on: March 01, 2014, 02:48:39 am »
Visible connectors are created for elements having a connector shared with the element in question. Unless it is explicitly suppressed via t_diagramlinks. About attributes you should check my Inside book. If you don't find it there I have to make an update.

q.
« Last Edit: March 01, 2014, 02:49:05 am by qwerty »