Book a Demo

Author Topic: Hide class attributes/operations in a diagram  (Read 4557 times)

tonySparx

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Hide class attributes/operations in a diagram
« on: April 08, 2010, 05:09:44 pm »
Hi all,

I'm trying to find the way, through Automation API, to hide specific class attributes or operations in the same way of  "Suppress or Show Specific Features" UI feature (I work on 7.5.850 EA version).
I've looked at .eap file (opening it with MS Access), but I no founded nothing about this issue.
Could anyone help me? I'm sure that this information is stored necessarily somewhere in the eap file, but I've checked all tables without finding anything relevant! :-/

Thanks in advance!
"everything is possible, but there are things more likely than others..." © all rights reserved

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hide class attributes/operations in a diagram
« Reply #1 on: April 08, 2010, 05:41:09 pm »
Tony,

These settings are stored in the StyleEx attribute to the diagram as a very cryptic thing like
Code: [Select]
SPL=S_4C449F=3B2578,D650A9:;I figured out that
- 4C449F is the first part of the ea_guid of the t_object
- 3B2578 and D650A9 are the first parts of ea_guid's of the attributes that are shown.
In the DiagramObject.ObjectStyle you will find also find
Code: [Select]
AttCustom=1; to indicate that there is something specific to the attributes of the diagramobject

Good luck ::)

Geert

tonySparx

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Hide class attributes/operations in a diagram
« Reply #2 on: April 08, 2010, 06:47:51 pm »
Thanks a lot Geert!  :D
I've already checked the StyleEx field, but I've no noted this "cryptic thing"!

However, in the DiagramObject I noted the string:
Code: [Select]
Constraint=1;AttCustom=0;OpCustom=0;RzO=1;when there's something (at least one between attribute or operation) "hidden" and not AttCustom=1...

A last question (a curiosity): in your opinion, what does the prefix "S_" mean in SPL string?

Thanks again Geert! :D
"everything is possible, but there are things more likely than others..." © all rights reserved

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hide class attributes/operations in a diagram
« Reply #3 on: April 08, 2010, 07:13:48 pm »
disclaimer: I'm guessing here:
The "S" prefix could mean "Show".
If that is the case we can expect a "H" (Hide) prefix to exist as well (depending on whether you check the attributes to be shown, or the attributes to be hidden)

Geert

tonySparx

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Hide class attributes/operations in a diagram
« Reply #4 on: April 08, 2010, 07:33:36 pm »
Quote
disclaimer: I'm guessing here:
The "S" prefix could mean "Show".
If that is the case we can expect a "H" (Hide) prefix to exist as well (depending on whether you check the attributes to be shown, or the attributes to be hidden)

Geert


I think it means "Suppress" because from my tests all GUIDs belongs to hidden attributes/operations...  ;)
"everything is possible, but there are things more likely than others..." © all rights reserved