I am tying to make heads and tails out of the following VBA Example and make it useful for powershell.
http://msdn.microsoft.com/en-us/library/office/ff769170.aspxWhat I want to do is group some named shapes once i have created them on the page.
Here is my first pass. It does not work and I am confused on why? Can anyone assist me?
$visio = New-VisioApplication
#Open an existing template
$ftdr_template = Open-VisioDocument "c:\temp\yourvsdtemplate.vst"
#open a stencil
$ftdr_stencil = Open-VisioDocument c:\temp\visio\dynamic\ftdr_stencil.vss
$master1 = Get-VisioMaster "master.21" $ftdr_stencil
$Shape1 = New-VisioShape $master1 -Points 4,5.2
$master2 = Get-VisioMaster "master.22" $ftdr_stencil
$Shape2 = New-VisioShape $master1 -Points 6,5.2
$Selection = Get-VisioPage -ActivePage
$Selection = $shape1, $visDeselectAll + $visSelect
$Selection = $shape2, $visSelect
$groupshape = $Selection.group