Check out Microsoft DSL Tools - http://msdn.microsoft.com/en-us/library/bb126259.aspx
It is a "designer generator" - allows you to define your own diagram format, specify shapes, arrows, colors, etc. and generates a designer for you that is able to edit such diagrams and export any textual artifacts about your diagram (e.g. XML or code).
Kirill Osenkov
2008-12-04 09:43:19