+3  A: 

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
Is there any working example? The solution seems to be kinda general for my task.
avp
Sorry, I just cannot get through these docs: it's an overwhelming volume and it seems to be a middle of some solution of some task (DSL)...
avp
This might be a better starting point:http://code.msdn.microsoft.com/DSLToolsLab
Kirill Osenkov
Gotta second this. DSL tools just rock. Difficult to get started, but once you start rolling... well... the fun never ends.
Dmitri Nesteruk
+1  A: 

What about using something like GraphWiz?

leppie
+1  A: 

http://www.graphviz.org/

HTH

plan9assembler
+2  A: 
epatel
Looks cool, but we've got MS DSL Tools already...
Dmitri Nesteruk