How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010?

Carven picture Carven · Nov 12, 2012 · Viewed 41.7k times · Source

I am trying to find a way to generate UML diagrams (sequence diagrams, class diagram, etc) from my C# code written in Visual Studio 2012.

I saw a link on http://office.microsoft.com/en-us/visio-help/about-reverse-engineering-code-to-the-uml-HP001208803.aspx that I could bring my Visual Studio project into Visio.

But its first part where it says "In the Visual Studio environment, reverse engineering is activated from a command on the Project menu." doesn't work for me because I cannot find a reverse engineering option under the Project menu.

How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010?

Answer

John Saunders picture John Saunders · Dec 5, 2012

Microsoft no longer considers Visio to be a software engineering tool. There was a version known as "Visio for Enterprise Architects", which had this integration with Visual Studio. It was available with the highest-end edition of Visual Studio.

I believe it was last supported with Visual Studio 2005, though that might have been 2003.

Visual Studio Ultimate now has its own built-in UML features which do not rely on Visio.