PowerShell and Visio Part 3 – Drawing Shapes

This is part 3…if you haven’t read part 1 or part 2 you probably want to go back and read those. Now that we’re all up to speed, I promised I’d talk about drawing shapes in Visio. We’ll start with an easy one. Drawing Circles and Rectangles Remember that you have to open Visio with …

Continue reading ‘PowerShell and Visio Part 3 – Drawing Shapes’ »

PowerShell and Visio Part 2 – First Steps

Last time I talked about Visio and PowerShell and told you (in broad strokes) what I wanted to get done.  Now we’ll actually get started! Starting Visio from PowerShell To open the Visio application from PowerShell in order to start manipulating it, you need to use the appropriate COM class.  The code looks like this: …

Continue reading ‘PowerShell and Visio Part 2 – First Steps’ »

PowerShell and Visio Part 1 – Introduction

I’ve been playing around with Visio and PowerShell for quite a while now and the experience is something of a mixed bag.  My first thought was to use PowerShell to build integration diagrams, reading server names, domains, VLANs, and datacenter locations from a database, and adding color-coded connections to show the network connection requirements (e.g. …

Continue reading ‘PowerShell and Visio Part 1 – Introduction’ »