qjs

Using Guidance tool with VS 2005 team version, I created a web service solution. When coding is done, I need to create a class diagram. Is there a tool can do this based on my Vs 2005 solution and project, or binaries

Thanks



Re: Visual Studio Team System - General Is there a tool to create class diagram

Carl Daniel

Visual Studio 2005 Standard Edition and above include Class Designer.

You can access it by right-clicking on a source file or project in the Solution Explorer and choosing "View Class Diagram".

You can add a class diagram to a project by right-clicking on the project in the solution explorer and choosing Add | New Item ... and choosing Class Diagram from the list of items.

There's probably a dozen other ways to get a class diagram as well.

Note that the class diagram is not UML. It's similar, but not quite the same. The key feature of the class diagram though is that it's "live": changes to code are reflected to the class diagram in real time, and changes to the diagram are reflected back into the code in real time as well. It's simply a view into the code, not a separate model that needs to be synchronized.






Re: Visual Studio Team System - General Is there a tool to create class diagram

Airan

Is it not available for C++ projects ..I got this option in C# project but not gettin the same option in C++ project.






Re: Visual Studio Team System - General Is there a tool to create class diagram

Aseem Chiplonkar

The class designer only gives out the classes... doesnt show any relationships !!!





Re: Visual Studio Team System - General Is there a tool to create class diagram

Carl Daniel

By default, properties and fields are not shown as relationships. If you want a property or field that does in fact define a relationship to be shown as such, right-click on it and choose "Show as association" from the pop-up menu.




Re: Visual Studio Team System - General Is there a tool to create class diagram

Airan

But that only works with C# (or managed code projects).

I have one C++ project in VS2005 and i am not able to find any option to generate class diagram for it.

Is it possible for C++ project






Re: Visual Studio Team System - General Is there a tool to create class diagram

Carl Daniel

No, the class designer is not supported for C++ projects, unfortunately. Some limited support was included in the early VS2005 betas, but the VC++ team had to pull support for C++ due to resource constraints. Hopefully it'll come back in a future version of VS with the kind of support that C++ programmers would expect.