The UML sequence diagram is automatically generated based on. NET code.

Source: Internet
Author: User
Tags staruml
Sequence dimo-generator for. net

I was recently asked about programs that can be automatically generate sequence diagrams from code. while this seems like a somewhat trivial task, there aren't any good ones. I figured I 'd share what I knew, tho. maybe someone else knows of something better.

The first option that came to mind was Visio. I have to admit I'm not a fan of Visio. if you're designing or documenting network topology, I'm sure it's great. I don't do that, tho. I work with software, and Visio is horrible for that. if you want to give it a try, tho, you can export your project from Visual Studio. unfortunately, this won't create a sequence dimo-for you, so it was even more useless for what I was needing.

the next thing that came to mind was a tool built to do exactly this, sequenceviz. this tool analyzes an assembly and creates a sequence digoal. you 'd think the search wocould be over, but not quite. the problem with sequenceviz is that, if you try to map out anything complex, the divisor is useless. not because it's all jammed together; the tool doesn't scale... At all. beyond this, the tool has some promise. the only other complaint I really have is the install experience. there are some odd dependencies that aren't encoded in the installer, so you have to go hunt them down and install them separately. I hate this. given the power of WPF, I wocould 've preferred to use the capabilities built. net.

The next thing I thought about was my favorite Modeling Environment, sparx systems enterprise impact ect. the problem here is the automatic generation thing. to my knowledge, it doesn' t do that. I cocould be wrong, tho, so if you're looking for an all-up Modeling Environment, I recommend you start here. if the price tag is a problem, take a look at staruml, which is open source. staruml hasn' t updated in a few years, tho, Which is disappointing.

The last tool I found was a Visual Studio add-in called Flow Chart 4 C #. this tool generates a flow chart-not a UML Activity dimo-for a given code block. this isn' t exactly what I was looking for and, honestly, I wasn' t impressed. if I were to need something like this, I 'd prefer standard UML over some non-standard flow chart visualization.

one thing I 've wanted for a long time has been a complete MDA environment for Visual Studio. when the domain specific language (DSL) tools was released, I thought this wocould be a great tool to help get there, but it seems I'm the only one interested in it. microsoft has a vision, but it's at a much higher level. i'm thinking about an almost completely pure MDA approach where you don't need much code. most are probably scoffing at this, but I'm not talking about getting rid of code. i'm talking about code = model and model = code. there shoshould be no difference between the two. I 've put some thought into it, but don't really have the time to dedicate to working on it. maybe after a few more side projects.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.