How to generate UML diagrams programmatically in Java?

What is a UML design tool, such as IBM Rational Software Architect, that can generate C# code from the UML design diagrams?

  • UML design tools

  • Answer:

    I'm not sure how it compares to Rational, but Visual Studio 2010 appears to be your best for Microsoft software.  You can download the visualization and modelling features pack from the following link in order to generate skeleton code from your diagrams (assuming you have VS Ultimate): http://msdn.microsoft.com/en-us/vstudio/ff655021.aspx

Elliott Hamai at Quora Visit the source

Was this solution helpful to you?

Other answers

You could also use Visual Paradigm (http://www.visual-paradigm.com/). I used the modeling pack in Visual Studio 2010 and I found it not enough powerful. However, it does a great job if you only need a skeleton.

Marc-Antoine Lemieux

There are serveral good tools in this space, here's a couple that i have used and would recommend Enterprise Architect from Sparx Systems (http://www.sparxsystems.com/products/ea/8/index.html) UModel from Altova (http://www.altova.com/umodel.html) There are also open source options that are capable as well.

Ben Reilly

I know the team that wrote C# code generator, it was a pretty strong team. I think C# code generator does a pretty solid job. However, if you were to just generate skeleton code once and then move on, you could use almost any decent tool; you don't need Rational Software Architect (RSA) if model is not going to be live artifact beyond initial design. The real power of RSA is not when you use it as sketching and code skeleton generation tool, it is when you either do Model Driven Development (MDD), or when model and code evolve over time, when you need to auto-sync/auto-generate, refactor model/code, compare and merge models, etc. etc., I bet no modeling tool under the sun can match RSA power as of today. In my opinion, main drawback of RSA is that it is a desktop tool and most of the world is moving to cloud. RSA Design Manager (DM) is their cloud offering, which I don't find that impressive. They haven't gotten cloud correctly, and again IMHO, it is because they wanted RSA to evolve into DM instead of starting from a clean slate. That reduced architectural/design choices. RSA was hugely successful, and sometime success is its own biggest enemy.

Anonymous

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.