Powershell and Visio: Move objects and add text
Lets take our look a Visio a bit further and move objects around and change the text labels
To move an object we can use the SetCenter method. The numbers are X & Y co-ordinates. The origin is at the bottom left corner (0,0). Depending on what units and paper size you are using – using A4 I get 8,11 as an approximation to the top right corner so I’m guessing the co-ordinates represent inches. Check on your implementation.
The text is simply changed by setting the Text property as shown.
Now we have the basics of working with Visio – its time to think what we can do with it.