Book a Demo

Author Topic: Display a class without any compartments...?  (Read 4035 times)

medleykupps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Display a class without any compartments...?
« on: March 31, 2011, 12:13:38 pm »
Hi,

I'm sure this is really easy to do but I haven't been able to find out...

I want to display a class as a simple box without any compartments what-so-ever.  I've used the Feature Visibility dialog and set/unset all setting but still my class appears with the name, then a line, then an empty compartment.

How do I hide the compartment?

Cheers!

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Display a class without any compartments...?
« Reply #1 on: March 31, 2011, 06:25:09 pm »
Hi
If you right click on the diagram and select properties you will see the diagram properties dialog.
If you access the Elements tab you can select which compartments are visible

HTH

Graham

medleykupps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Display a class without any compartments...?
« Reply #2 on: April 01, 2011, 09:19:30 am »
Hi,

Thanks for your reply but that doesn't seem to work.

I'm looking to create a domain model much like the ICONIX domain model.  The initial sample domain model diagram features classes that have no compartments at all...just a rectangle with the name of the class.

That's what I would like to do but I can't see how it was done.

Dragging a new class onto the ICONIX domain model diagram creates a class showing one compartment.  This makes me think that it's a element-level setting as opposed to a diagram-level setting.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Display a class without any compartments...?
« Reply #3 on: April 01, 2011, 09:38:40 am »
In the Iconix examples, I'm pretty sure it's just a matter of shrinking the size of the Class on the diagram until the compartment is no longer visible.  Drag the sizing handle for the bottom of the class up to the line where the 'compartment' begins.  You can then select all the classes on your diagram and use a command like "Same height" to make all other classes on the diagram look the same.

If you want to make this the default size for all new classes you drop onto the diagram, use a Template Package.
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_fundamentals/using_element_templates.html

HTH.
« Last Edit: April 01, 2011, 09:39:26 am by AaronB »

medleykupps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Display a class without any compartments...?
« Reply #4 on: April 01, 2011, 09:41:30 am »
Thank you.  That did the job.  

Such a simple solution...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Display a class without any compartments...?
« Reply #5 on: April 01, 2011, 11:42:50 pm »
Of course this won't work in all situations. It can also be labour intensive. If you want full height classes without a compartment separator line you will find this difficult.

What about when you want to create executive level conceptual models. The basic compartment line can be a problem.

Some (long) time ago I made a feature request to allow some method of turning off the default separator line. It never made the cut.

David
No, you can't have it!