How to export Visual Studio 2010 UML Modeling Diagrams

…衆ロ難τιáo~ 提交于 2019-12-04 14:57:52

问题


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!


回答1:


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




回答2:


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

How to: Export UML Diagrams to Image Files




回答3:


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.



来源:https://stackoverflow.com/questions/1686767/how-to-export-visual-studio-2010-uml-modeling-diagrams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!