English 中文(简体)
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.

最佳回答

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

问题回答

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.

for that you should first use Reverse Engineering options but as some other users pointed out, this is not a strenght from EA. i tried in the past (version 7.3 I think) to do it with C, Python and Java Projects and the results were not always satisfactory.

I dont know which programming language is your code written in, but as for C, if you use preprocessor instructions, you will have lot of issues and incompatibilities in the result.





相关问题
Understanding UML of DoFactory Design Pattern - Decorator

I am trying to understand UML diagram describing Decorator Pattern at link below http://www.dofactory.com/Patterns/PatternDecorator.aspx I don t understand why there is a "Aggregation" relation ...

UML Code generation tool in C# [closed]

Please suggest me any opensource tool to generate C# code from UML designer,Or any plugin to generate code from visualstudio. My requirement is to have a code generation tool for C#.

How to design/plan for web application development?

I m interested in learning how to design/plan for web application development, in a multiple developer team scenario. Assuming the role of "Project Manager/Lead": What "documents" are needed for ...

Software for Sequence Diagrams? [closed]

I ve been using NClass for object/class modeling in class thus far. However, I do not believe that it is capable of sequence diagrams, which is my next task. I would prefer not to use Visio. Is ...

UML Diagram to Model API

I need to create a diagram to document a RESTFul API that build, which UML diagram should I use? Thanks in advance,

Where could I find some UML samples? [closed]

I need a punch of samples of UML diagrams to get an start point to develop my own diagrams. Does anyone know about a good website where I could find it? Thanks!

热门标签