​How to auto-create UML Class diagrams and ER diagrams​

Astah has “Auto-Create Class/ER diagram” feature. It enables you to create a Class/ER diagram automatically and generate a Class/ER diagram fast and easy.

For instance, you can import the source code by using Import Java feature, C# Reverse Engineering Plug-in or C++ Reverse Engineering Plug-in then create a Class diagram automatically. Also you can import database tables with DB Reverse Engineering Plug-in then create an ER diagram automatically.

Here is a step to do so:


Class diagram

There are two ways to create a Class diagram automatically.

A: Simple Class diagram without Attributes or Operations

Right click on Package, Subsystem or Model on the structure tree then select [Auto Create Class Diagram].
auto class dirgam

 

 

 

 

 

 

The simple Class diagram will be created.

class auto-create

 

B: Detailed Class Diagram with Attributes and Operations

 

Select [Detailed Class Diagram] of the model popup menu.

Class auto-create

 

 

 

 

 

 

 

 

The detailed Class diagram will be created.


ER diagram

Here is an example of creating an ER diagram automatically.

Select [Auto Create ER Diagram] of ER Model popup menu on the structure tree.

 

The ER diagram will be created.


3 thoughts on “​How to auto-create UML Class diagrams and ER diagrams​

  1. Is there any way to automatically update the created class diagram, when the Java source code is changed? I would like to use this with the track changes option in Astah to see how the diagram has evolved as the code changes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s