Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: solenn 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
-
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 ::)
-
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
-
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
-
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
-
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.