How to export Visual Studio 2010 UML Modeling Diag

2019-03-22 10:13发布

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). Voila!

3条回答
我命由我不由天
2楼-- · 2019-03-22 10:53

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

How to: Export UML Diagrams to Image Files

查看更多
男人必须洒脱
3楼-- · 2019-03-22 10:56

See also Cameron Skinner's blog post Save a diagram to Image File

This describes how to create a context menu option in VS which will allow you to export the diagram as an image.

查看更多
淡お忘
4楼-- · 2019-03-22 11:15

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

查看更多
登录 后发表回答