views:

2429

answers:

3

Hello!

I recently created a very nice UML Class diagram inside Visual Studio 2010 (b2). The tools worked like a charm and I was able to model a rather complex domain within minutes.

However, I cannot find any way to export my diagram as an image (PNG/JPEG/etc.).

Does the modelling features in VS2010 support exporting diagrams as images? If so - how do I do it?

Print src is NOT the answer.

Edit: Found one way to export... Go to File > Print and select Adobe PDF

Edit 2: Found another, slightly more elegant, way to export. In the diagram editor: Select all (Ctrl + A), Copy (Ctrl + C), Go to your favourite image editor (paint works fine) and Paste (Ctrl + V). Viola!

+2  A: 

The VS 2010 Ultimate RC documentation has more info about exporting the UML diagrams as images: How to: Save Images of Diagrams

Esther Fan - MSFT
A: 

See also Cameron Skinner's blog http://blogs.msdn.com/camerons/archive/2010/03/08/save-a-diagram-to-image-file.aspx

Alan Wills
A: 

We now have a topic in the documention about how to do this programmatically:

How to: Export UML Diagrams to Image Files

Esther Fan - MSFT