Steve Cook, a long time architect on my team, has made available a sample that shows how to access the UML meta data in Visual Studio’s new UML project system and export that data into the OMG’s XMI data format. XMI is the OMG standard used to describe UML meta data for exchange between various tool vendors.
In Visual Studio 2010 Ultimate, we have the ability to import XMI ( via the Visualization and Modeling Feature Pack ), but we didn’t get XMI export into the feature pack.
If you are interested in this sample, here are the steps you need to do to take it for a test drive:
And that’s it!
The great thing about providing this as a sample is you can jump into the source to see how to get access at all the UML meta data in your UML Modeling projects. To start, reopen the XmiExporterSample and open the XmiExportCommand.cs file. Set a break in the Execute method…
Hope that helps,