Book a Demo

Author Topic: Reverse Engineer - Create Class Diagram  (Read 13368 times)

manpreetgr8

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reverse Engineer - Create Class Diagram
« on: May 21, 2009, 12:18:39 am »
Hi, I was analyzing a legacy C++ application, which had thousands of classes. When I click on a class and say find in diagram, the EA tool continues processing for hours, without result. So from properties, I unchecked everything, and it displayed a simple class diagram with no relationships etc. Now in once class diagram, I want to select a single class and ask the tool to find all relationships of this class only. I did'nt find any way to do this.

Is this feature available in EA, if yes please help.

Thanks

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #1 on: May 21, 2009, 09:50:52 am »
You have a number of options. The simplest is to double-click on the Class element to display the element Properties dialog and select the Links tab.

You could also drag the Class element onto a dummy diagram and select the Add | Related Elements context menu option. This adds the Class's related elements (and their connectors) to the diagram.

Or, you could click on the Class element and select the View | Hierarchy menu option, to show relationships of various selected types (click on the Hierarchy window toolbar icons to select the relationship types).

The Relationship Matrix will show you relationships of a specific type, according to the values you select in the drop-down fields at the top of the window.

You should be able to find information on these things easily in the Help, using the index or search.
Best Regards, Roy

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #2 on: May 21, 2009, 11:11:10 am »
Ummmm - I am reliably informed that the Relationships window (View | Relationships) is the quickest and simplest of the windows to use, especially with a large model.

You could regard that as the tabular equivalent of using the Add Related Elements menu option, though it probably provides the most information in the most-easily-read format of all the options.
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #3 on: May 21, 2009, 11:29:58 am »
Comment deleted as not applicable to Relationships window...

My bad - sorry folks... (Not enough sleep)  :(

Paolo
« Last Edit: May 21, 2009, 04:12:56 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #4 on: May 21, 2009, 03:03:40 pm »
Quote
You've been misinformed, Roy...  In a number of places in the forum I have noted that if you have anything other than a trivial model, having the relationship window "open and having focus" will effectively "freeze" EA while it regenerates.

It is certainly a useful window - but it needs to be used with care...

In my usage, I have it as part of a tabbed set and ensure that it is never the visible tab (when moving between items).  I switch to it when I need to then immediately switch back.
Actually, I think you're confused.  The hierarchy window takes a long time to fill.  The relationships window is quite quick.  Roy was describing the relationships window.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #5 on: May 21, 2009, 04:14:39 pm »
Quote
Actually, I think you're confused.  The hierarchy window takes a long time to fill.  The relationships window is quite quick.  Roy was describing the relationships window.
Thanks Simon,
Yes, I was confused...

My Bad,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverse Engineer - Create Class Diagram
« Reply #6 on: May 22, 2009, 08:25:32 am »
Glad to hear it's sorted then.