Book a Demo

Author Topic: A method to show only class shape on the domain diagram  (Read 6717 times)

Eric Beser

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
A method to show only class shape on the domain diagram
« on: July 27, 2016, 10:12:47 pm »
I am trying to draw a domain diagram from reversed engineered classes.  When i drag and drop the class on the diagram, the full class with all properties, methods, and class attributes show on the diagram.  Is there a setting or a script that can be used to show only the class and not all the attributes?  Its a pain setting by hand with a lot of classes to work with.

Is this scriptable? 

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: A method to show only class shape on the domain diagram
« Reply #1 on: July 27, 2016, 11:02:41 pm »
You can turn that off per diagram properties/Elements/Show Compartments. And it is scriptable: t_diagram.ShowPackageContents must contain "HideAtts=1;HideOps=1;" (sorry, can't recall the API equivalence right out of my head).

q.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: A method to show only class shape on the domain diagram
« Reply #2 on: July 27, 2016, 11:03:12 pm »
Yes, open the diagram properties (double-click on the diagram background)
Select Element from the left hand side
Uncheck the checkbox named Attributes
Uncheck the checkbox named Operations

Close the dialog

You should now be left with just the classes

Cheers

Phil
Models are great!
Correct models are even greater!