Enterprise Architect (EA) source code to generate UML class diagrams to help understand project engineering

Source: Internet
Author: User

http://blog.csdn.net/wpc320/article/details/8108640


With VS to see large engineering code, especially many layers of class, it is easy to dizziness, even if the visual assist Plug-ins installed. Use VS to generate a class diagram, you can only generate a bunch of boxes, only a few small class relationships have arrows indicated. Far from being able to meet the requirements. The following describes the modeling tools EA to generate class diagrams.

1, new class diagram (such as Classmodel), no use of the chart deleted, Ctrl+s save.

2, select Class Diagram (Classmodel), Shift+ctrl+u Open dialog box, select a good root directory, is generally the module or project source code location, generally according to the figure set the option, OK.

3, will see recursive traversal source code, there will be errors, according to the prompts to find the source location, generally there is a macro in the position, EA is not automatically identify macros, we need to set up for him, in the menu-〉 settings have a "macro definition", click Add, enter the name of the macro. Enter all the macros that led to the error, create a new project and class diagram, and then press the above again to see that the error disappears. (Note to do in the new engineering diagram, because in the old it will be lost some arrows, that is, the relationship between classes and classes, because EA is the default to have imported classes no longer check, even if the wrong class)

4, to the end of a class diagram, similar to spider webs, think chaos can save a backup, and then the useless structure enum and other charts deleted, small class diagram can also be deleted. Note that there is no association between the chart view and the project browser, and after you delete it in the chart view, the project browser also has, does not affect the view, the proposed reservation, later want to see and then drag out to put in the chart view, the arrow will automatically connect.

5, EA selected class chart, and then press F12, you can locate the code, not used to view in VS, use the Visual assist Ctrl+alt+s find symbols (classes, structures, macros, etc.) and Ctrl+alt+o find file names. Use Alt+g to track symbols.

6, combined with the other shortcuts in VS, to help understand the project code.

7. EA cannot generate arrows for the invocation of a single instance (e.g. Cxxx::getinstance ()->dosomething ();)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.