Not a provocative title for this blog post, but it is what it is.
This week I needed to programmatically generate from C# from the list of sections, rows, cells, etc in Visio. My first discovery is that this information doesn’t already exist in a single place – it’s scattered over many pages in MSDN.
Fortunately I also discovered two things:
- MSDN has a “Low Bandwidth” version of its webpages - http://msdn.microsoft.com/en-us/library/bb267452.aspx
- The HTML Agility Pack makes it easy to do “scraping” of HTML
Combining those two things with some C# code I was able to extract a single file that contains all the information into a single XML file.
GET THE XML FILE HERE
You can download the file from my SkyDrive here: http://cid-19ec39cb500669d8.skydrive.live.com/browse.aspx/Public/Visio/Developer%20Information/ShapeSheet-Reference