A colleague, Charlie Robbins, sent an email about a web site which can create online UML diagrams in seconds from inside blog posts, articles and documents.
Let’s do it with PowerShell
yUML has a straightforward syntax.
This Html tag
<img src="http://yuml.me/diagram/class/[Customer]1-0..*[Address]"/>
produces this diagram
The PowerShell function Get-yUMLDiagram
Produces the same, here is how you use it
Get-yUMLDiagram "[Customer]1-0..*[Address]" -show
Class with Details
The function ConvertTo-yUML takes an object and generates the yUML for the Properties and/or Methods.



{ 2 trackbacks }
{ 7 comments… read them below or add one }
Awesome! I think I will use this a lot.
Enhancement ideas:
Optionally display inheritance for ConvertTo-yUML.
Optionally display implemented interfaces for ConvertTo-yUML (only for the object you are examining).
That’s pretty neat! I really like the idea of that, nice use of yUML. Have you seen RailRoad for Rails? It’s a similar idea for reflecting on classes and generating diagrams.
Hey, I just realised you’ve got a broken image linke. The http:// part is displayed twice in the image URL.
I guess yUML accidently accommodated this error before, but now it doesn’t
Cool stuff! I used your example to create a class digram of SQL Server tables with associations.
@Tobin thanks
@Chad great, post it
Using on Win7:
dirty way to run
(powershell in administrator mode): set-executionpolicy unrestricted
and replace the c:\ path in the yuml.ps1 to writable directory.
Unrestricted is my approach on my personal dev box. Not recommended in many scenarios.