> For the complete documentation index, see [llms.txt](https://saveenr.gitbook.io/visiopowershell/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saveenr.gitbook.io/visiopowershell/visiops_v3/shapes/groups/examples.md).

# Examples

#### Example 1 <a href="#example-1" id="example-1"></a>

```
Import-Module Visio
$visio = New-VisioApplication
$doc = New-VisioDocument
$stencil = Open-VisioDocument "basic_u.vss"

$master1 = Get-VisioMaster "Rounded Rectangle" $stencil 

# Drop multiple shapes at the same time
$shapes = New-VisioShape $master1 -Points 1,5.2,3,5.2,5,5.2

#Ensure that Nothing is Selected - just to demonstrate this feature
Select-VisioShape -Operation None

#Select the first and third shapes dropped
Select-VisioShape -Shapes $shapes[0],$shapes[2]

# Group the selected shapes
$g1 = New-VisioGroup

# Ungroup them
Split-VisioShape -Shapes $g1

# Group by specifying the shapes (ignore whatever is selected)
$g1 = Join-VisioShape -Shapes $shapes[0],$shapes[1]
```
