This is actually closer to the reverse of visual programming -- we create diagrams by providing their textual representation. I really like the idea. Every time I need to deal with some UML or diagram application I have an impression that generating diagrams from skeleton source code would be easier than the other way round. Tools like the built-in Visual Studio modeler, which updates the diagrams in real time, are also a step in good direction.