Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sparx Enterprise Architect conversion (from source to UML)

I need to make a UML class diagram for a project. I used Sparx Enterprise Architect in the past to generate source code from a diagram so I'm using that.

The project is complete so all of the code is done and I don't really want to write all the classes/functions manually, so I was trying to generate the diagram from the source code but can't seem to find a way to do it. I searched online and on their website but nothing.

Any help appreciated.

like image 338
user228938 Avatar asked May 29 '10 17:05

user228938


People also ask

Is Sparx EA free?

Free 30 day unlimited use.

What is Sparx Enterprise Architect used for?

Sparx Systems Enterprise Architect is a visual modeling and design tool based on the OMG UML. The platform supports: the design and construction of software systems; modeling business processes; and modeling industry based domains.

Why do we need Enterprise architecture?

Enterprise architecture will help multiple departments in a business understand the broader business model and articulate challenges and business risks. Because of this, enterprise architecture has an important role in unifying and coordinating departmental processes across an organization.


2 Answers

For Version 8 of EA Corporate Edition. Open or create a project. Create empty class diagram. Menu selection: Project -> Source Code Engineering -> Import Files Directory dialogue box opens for you to select files.

I have 'reverse engineered' many C++ projects, large and small. You WILL spend significant time on cleaning up. It will depend on the quality of the project, its structure and code.

Then you can generate a documentation report on it (Project->Documentation) which I have found very useful, the HTML report, to navigate the code.

like image 165
Sam Avatar answered Oct 17 '22 09:10

Sam


It's called "reverse engineering" to import the code into the model. After it's in the model you can make diagrams.

like image 27
ChrisW Avatar answered Oct 17 '22 08:10

ChrisW