locked
Genereate Code from UML RRS feed

  • Question

  • What are the possible ways to Genereate Code from UML in VS2010 and what are the prerequisites.

    Thanks in advance

    Wednesday, February 23, 2011 5:42 AM

Answers

All replies

  • You can generate C# code from UML class diagrams if you also install Visual Studio 2010 Feature Pack 2 with Visual Studio 2010 Ultimate:

    Visual Studio 2010 Feature Pack 2

    How to: Generate Code from UML Class Diagrams


    Esther Fan | Visual Studio, Content Lead | If a post answers your question, please click "Mark As Answer" on that post and mark as Helpful. Thanks!
    Wednesday, February 23, 2011 8:39 PM
  • Thanks Esther for your quick reply.

    I tried generate code from class diagram. its awesome but it does not gets you business logic or flow. Its jst create skeleton of classes (methods , properties)

    how can i get business logic, association, flow transformed

    e.g.

    1. calling of methods from one function to another.

    2. loops, conditional statements

    Thanks in advance

     

     


    HappyThoughts
    Monday, February 28, 2011 5:33 AM
  • There is not a way to generate the business logic with the code generation templates we shipped in the Feature Pack.  You can author your own templates along with using the UML API http://msdn.microsoft.com/en-us/library/ee329484.aspx  

     

    Thanks,
    Mark


    Mark Groves | Program Manager | Visual Studio
    Monday, March 7, 2011 9:45 PM