Author Topic: Automatic Generation of Class Diagrams  (Read 3261 times)

rwoodruf

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Automatic Generation of Class Diagrams
« on: December 08, 2004, 08:09:27 am »
Hello All,

I have searched the forum and found discussions on automating the generation of sequence diagrams but could not find a similar discussion on class diagrams.

What I am trying to figure out is how to automatically generate a class diagram for a particular namespace/package.  My design is completely new and therefore reverse engineering/importing the code is not an option for me.

So, how do I generate namespace/package diagrams in a new model?

Thanks and all help is appreciated.

-- Rodney

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Automatic Generation of Class Diagrams
« Reply #1 on: December 08, 2004, 03:00:12 pm »
Hi Rodney,

I'm not exactly sure of the functionality you require here, but I'm assuming you've setup a bunch of classes and packages (as namespaces) in EA's project view and these are not currently on any diagrams that show the various relationships...

Although there's no fully automated way to get all of the elements onto a diagram for each package, you might find the following useful.


* To quickly get all classes from a package onto a diagram:
1. Create a new diagram under the relevant package in the Project View.
2. In the Project View, select all classes of interest and drag onto the diagram (eg. if using EA 4.5, select all classes in the package by : Ctr+click first and last class in the package, then drag onto diagram)
3. Select Layout Diagram from the Diagram menu

* To conveniently insert related elements for a given class on an existing diagram :
1. Right-click the class of interest
2. Select the context option : Insert Related Elements

I hope this helps. Let me know if I have misread your intention.

Regards,
Ben



rwoodruf

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Automatic Generation of Class Diagrams
« Reply #2 on: December 08, 2004, 05:09:44 pm »
Thanks Ben,

That is what I wanted to know. Although, it seems that if I am able to import source code and generate a diagram for each namespace then that same functionality should be available to designs that are generated within EA.

-- Rodney
« Last Edit: December 08, 2004, 05:10:40 pm by rwoodruf »