• 0

How to create UML from code?


Question

Hi, I've heard that it is possible to create a UML diagram from your code in Visual Studio and I'd like to know how to do that and what versions of Visual Studio support it. I have access to pretty much all existing versions of VS including 2005 Team edition and 2008 Professional, although I only installed 2008 Pro.

Link to comment
https://www.neowin.net/forum/topic/622562-how-to-create-uml-from-code/
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Hi, I've heard that it is possible to create a UML diagram from your code in Visual Studio and I'd like to know how to do that and what versions of Visual Studio support it. I have access to pretty much all existing versions of VS including 2005 Team edition and 2008 Professional, although I only installed 2008 Pro.

In your solution explorer, right click on the file, and select "View Class Diagram"

  • 0
In your solution explorer, right click on the file, and select "View Class Diagram"
Whether I right-click on the solution or on the project, in the solution explorer, I don't see that option. Then again, here I'm at school on VS2005 Pro. I'll try it again on VS 2008 Pro when I get back home.
  • 0
Whether I right-click on the solution or on the project, in the solution explorer, I don't see that option. Then again, here I'm at school on VS2005 Pro. I'll try it again on VS 2008 Pro when I get back home.

I no longer have 2005 installed, so I cannot verify, but 2008 definitely has this feature.

  • 0

I remember there is an option to export it to a Visio file and all you had to do was open it in Visio and drag the classes over into the view. It doesnt do the lines for you but it cuts out typing all the stuff for the class.

Im sorry i cant give you the full details because i dont have VS2005 install anymore (or vs2008). Try looking under the "Project" menu in the Class Diagram editor.

  • 0
Is there any (free) tool that could produce a complete (well I'm looking for inheritance, agregation, composition and cardinality) UML class diagram simply by looking at your code?

I've seen nothing for .NET that is free and able to reverse engineer. Altova makes one that is inexpensive(compared to other UML editors with reverse engineering capability).

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Watch out, Neowin commenters don't like when you mention censorship. Otherwise agreed. Just like the porn site age verification in Texas. It isn't about "protecting kids", it's about control and censorship.
    • Ghost Downloader 3 v3.6.1 by Razvan Serea Ghost Downloader 3 is a high-performance download manager for Windows, featuring AI-enhanced acceleration, intelligent multi-threading, and smart file segmentation. It supports download resumption via .ghd files, global speed limits, and clipboard monitoring for quick link capture. The interface is built with Fluent Design, offering a modern and smooth user experience. Users benefit from advanced features like sparse file support, system tray integration, proxy configuration, secure SSL options, and automatic filename recognition. Ghost Downloader 3 is ideal for users seeking speed, efficiency, and customization. Core Download Features AI-Powered Acceleration: Experimental feature that dynamically increases thread count (up to 253) to maximize bandwidth usage. Intelligent Segmentation: Divides downloads into multiple parts for parallel processing, supporting breakpoint resume via .ghd files. Dynamic Thread Allocation: Automatically splits faster segments to create new threads, enhancing download speeds. Network & Proxy Support Global Speed Limiting: Allows setting a maximum download speed to manage bandwidth usage. Proxy Support: Compatible with SOCKS5, HTTP, and HTTPS proxies, including auto-detection features. SSL Certificate Verification: Optional SSL verification for secure downloads. System Proxy Detection: Automatically detects system proxy settings across Windows, Linux, and macOS. Windows-Specific Features Fluent Design UI: Modern interface with support for Mica, Acrylic, and Aero background effects. Toast Notifications: Supports Windows 10 (1709+) native notifications. Window Border Accent Colors: Enhanced visual integration with Windows 11. Application Features Smart Filename Recognition: Automatically identifies and decodes filenames from HTTP headers, URL parameters, or paths. Sparse File Support: Utilizes sparse file technology on supported file systems (e.g., NTFS) for efficient disk space allocation. Clipboard Monitoring: Optionally monitors clipboard for download links to facilitate quick task additions. Drag-and-Drop and Paste-to-Add: Supports intuitive methods for adding download tasks. Task Management: Features batch addition, per-task thread customization, pause/resume/cancel options, and hash verification (MD5, SHA1, SHA256). System Integration System Tray Support: Minimizes to system tray with background download capabilities. Automatic Startup and Task Resumption: Configurable to launch on system startup and resume unfinished downloads. Single Instance Enforcement: Prevents multiple instances from running simultaneously. Automatic Update Checks: Optionally checks for new versions on startup. Ghost Downloader 3 v3.6.1 changelog: New Features Responded to Liquic Glass's call with a brand new icon by @XiaoYouChR Added a scrolling effect to AddTaskDialog by @XiaoYouChR Improvements Fixed a series of issues in the download engine by @XiaoYouChR Fixed the issue where pop-ups didn’t display on Windows after compilation by @XiaoYouChR Optimized stuttering caused by clipboard monitoring by @XiaoYouChR Improved text display in the settings interface by @XiaoYouChR Added support for capturing files ending in .pkg by @XiaoYouChR Fixed unresponsiveness when pausing tasks by @XiaoYouChR Improved dark-mode rendering in AcrylicMenu by @XiaoYouChR Optimized SettingInterface performance on Linux by @XiaoYouChR Fixed window cannot bring to top nomally after clicking toast notification by @XiaoYouChR Notes: Ghost Downloader may trigger a warning or show a hit on VirusTotal, but if only a few antivirus engines flag it, it’s likely a false positive. The app is open source, so you can inspect the code yourself for peace of mind. If you want to use Ghost-Downloader-3 on Windows 7, please download the version v3.5.8-Portable. Download: Ghost Downloader 64-bit | Portable 64-bit | ~50.0 MB (Open Source) Download: Ghost Downloader ARM64 | Portable ARM64 Links: Ghost Downloader Home Page | MacOS / Linux | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Online verification has NEVER been about protecting children, it has always been about censorship and intimidation.
    • Tesseract level chess here.... ( add "taps head" meme...)
    • What other articles are you seeing this trend with? Were they all marked as editorials?
  • Recent Achievements

    • Rookie
      Nandiman went up a rank
      Rookie
    • Reacting Well
      Mokisharo earned a badge
      Reacting Well
    • Week One Done
      stevecastellano66 earned a badge
      Week One Done
    • One Month Later
      rshit earned a badge
      One Month Later
    • Week One Done
      rshit earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      433
    2. 2
      ATLien_0
      230
    3. 3
      +FloatingFatMan
      164
    4. 4
      Xenon
      150
    5. 5
      Michael Scrip
      143
  • Tell a friend

    Love Neowin? Tell a friend!