Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Visio
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Reverse engineer Visual Studio .NET source code
 
  1. In Visual Studio. NET, open a project or solution, and in the Solution Explorer, select the solution or project that you want to reverse engineer.
  2. Note  If a solution (solution: The file folder that contains templates for particular drawing types. For example, the Project Schedule solution folder contains the Calendar, Gantt Chart, PERT Chart, and Timeline, templates that you use to create those drawing types.) is selected, each project (project: In Microsoft Visual Basic for Applications (VBA), the code that you write that is saved with a Visio file. You can create only one project for a Visio document, but that project can consist of any number of modules.) in the solution is reverse engineered.

  3. In Visual Studio, on the Project menu, point to Visio UML, and then click Reverse Engineer.
  4. In the Select Visio UML File dialog box, specify options for naming and saving the Microsoft Office Visio drawing.
    • Under Save in, specify a location.
    • Under File name, type a file name for the UML diagram, or accept the default name. The default file name for the Visio drawing is the name of the Visual Studio solution or project you have selected.
    • Under Save as type, Visio Files (*.vsd) is set by default.
  5. To start reverse engineering and open the new file in Visio, click Save.
  6. The UML Reverse Engineer dialog box appears, showing progress of the operation. To stop the current reverse-engineering operation, click Cancel.

  7. In Visio, drag icons from the tree view onto the drawing page to create a static structure diagram that represents a view of the model.
  8. ShowHow

Note  If you make changes to a Visual Studio .NET project after reverse engineering the project and want to see the changes in Visio, you must rebuild the project, and reverse engineer the project again to see the updated structure of your code in the Visio UML diagram.

advertisement