20

Currently I am reading though the cryengine gamecode. It is huge not very well documented. It would be really good if I could create an UML diagram from the project file.

I already found some tools to generate an UML diagram from c++ code, the problem is that the cryengine project is really huge and it would take a lot of time to do this.

Do you think this is possible?

Maik Klein
  • 15,548
  • 27
  • 101
  • 197

2 Answers2

33

Visual Studio has the build-in UML generator. On Visual Studio project, select Class View, right click on the namespace, select View Class Diagram. It may take a while to generate UML diagrams if your project is big. Hope this helps.

enter image description here

IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
billz
  • 44,644
  • 9
  • 83
  • 100
  • 1
    it doesn't seem to generate the assocaition like one to one, one to many. – RoundPi May 20 '16 at 10:45
  • 1
    When I right-click on a class in this window, I don't see the action "View Class Diagram", what should I do? (I'm working with Visual Studio 2017) – Dominique Aug 25 '17 at 08:07
  • Even I do not see this option in Visual Studio 2017. I get **View Class Diagram** option when I right click on a header file, but I get an error saying **No such interface supported**. – Monu Surana Aug 29 '17 at 20:56
  • 4
    If you have the installer of Visual Studio still somewhere lying around, you can open the installer, press the modify button in the installer, go to the "individual components" tab, scroll down and tick "Class Designer" which is right below "Code Tools" – anon Oct 16 '17 at 22:41
5

You may be disappointed by the result: a huge mess of C++ may render as an equally hugely complicated UML diagram.

Nevertheless, one tool that designed to help visualize large C++ code bases is Understand.

ChrisW
  • 54,973
  • 13
  • 116
  • 224
  • 1
    You were right. Inheritance is pretty decent but composition is a real mess http://i.imgur.com/Xk00w.jpg I'll give "understand" a try. – Maik Klein Nov 19 '12 at 11:31