Select-VisioShape

Select all shapes

Select-VisioShape All

Selecting specific shapes

New-VisioRectangle 0 0 1 1
$shapes += New-VisioRectangle 0 0 1 1
$shapes += New-VisioRectangle 0 0 2 3

Select-VisioShape $shapes

You can pass in IDs of shapes

New-VisioRectangle 0 0 1 1
$shapes += New-VisioRectangle 0 0 1 1
$shapes += New-VisioRectangle 0 0 2 3
$shapeids = $shapes | ForEach-Object{ $_.ID }
Select-VisioShape $shapeids

Last updated