Author Topic: Display of elements on a diagram  (Read 487 times)

JackDavid

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Display of elements on a diagram
« on: January 23, 2018, 11:57:40 am »
In most of the diagrams that I create (Such as a data model) I usually go into the properties of the diagram elements and turn off the display of element attributes and operations. In some cases I want to be able to create a diagram where this is the case, but on the same diagram I may want some of the elements to actually display its attributes.
Example:
Diagram A
     Element 1 - Do not display attributes or operations
     Element 2 - Do not display attributes or elelemts
     Element 3 - Display attributes

Arshad

  • EA User
  • **
  • Posts: 133
  • Karma: +6/-1
    • View Profile
Re: Display of elements on a diagram
« Reply #1 on: January 23, 2018, 03:11:21 pm »
Hi Jack

It can be done in two methods
  • Manually ( You can disable in diagram level and element level too )
  • Scripts ( You can disable in diagram level and element level too )

To Disable in Diagram Level ( Manually ) :
  • Goto Diagram Properties - > Elements Tab -> ShowCompartment sections
  • Goto Diagram Properties - > FeaturesTab -> Visible Class Members sections

To Disable in Element Level ( Manually ):
  • Right click on a element -> Features & Properties -> Feature & Compartment Visibility - > Attribute Visibility section
  • Right click on a element -> Features & Properties -> Feature & Compartment Visibility - > Attribute Visibility section -> Custom


To Disable through script :
For Diagram Level - Refer column Pdata in t_diagram table with attribute named HideAtts and also Attpub,AttPri,AttPro columns
For Element Level - Refer ObjectStyle column in t_diagramobjects  and StyleEx column in t_diagram

Regards
Arshad
« Last Edit: January 23, 2018, 03:45:41 pm by Arshad »

Sparx Systems India - Services
Profile | Training PlansConsulting

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 301
  • Karma: +9/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Display of elements on a diagram
« Reply #2 on: January 23, 2018, 08:46:02 pm »
In most of the diagrams that I create (Such as a data model) I usually go into the properties of the diagram elements and turn off the display of element attributes and operations. In some cases I want to be able to create a diagram where this is the case, but on the same diagram I may want some of the elements to actually display its attributes.
Example:
Diagram A
     Element 1 - Do not display attributes or operations
     Element 2 - Do not display attributes or elelemts
     Element 3 - Display attributes
Have you considered creating custom diagrams (using an MDG) with these properties set by default? I've found that way to be really handy