Skip to Content
Visual Studio Hacks
book

Visual Studio Hacks

by James Avery
March 2005
Intermediate to advanced
304 pages
19h 23m
English
O'Reilly Media, Inc.
Content preview from Visual Studio Hacks
354
|
Chapter 10, Work with Visual Studio Tools
#81 Generate Code from UML
HACK
HACK
#81
Generate Code from UML Hack #81
Get a jump start on your coding efforts by using Visio to generate your code.
When Microsoft purchased Visio for its business productivity division in
1999, the company began working on getting it to better integrate with its
Office and Visual Studio product suites. This has lead to advancements in
Visio itself, especially as to the use of UML for designing applications. UML
is an industry standard that allows architects and developers to produce
design documents and diagrams that are commonly understood and used
during the development of an application.
One of the advancements in Visio is the ability to generate code from the
design documents, in particular UML class diagrams that can be used to
generate code for your classes in Visual Studio. Visio can generate the code
in C#, VB, or C++, and you can even create your own templates in Visio for
how you want it to generate your code. For application teams that utilize
design documents, this can be a nice jump start to your coding effort.
This feature is available only in the Visio for Enterprise
Architects version that comes with Visual Studio .NET 2003
Enterprise Architect Edition. No other version of Visio
includes code generation.
A Simple Class Diagram
To have Visio generate code for your classes, you first need to create a UML
class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mastering Visual Studio .NET

Mastering Visual Studio .NET

Chris Sells, Ian Griffiths, Jon Flanders
C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 0596008473Errata Page