New-VisioShapeCells
Get-VisioPageCells
Set-VisioShapeCells
Set-StrictMode -Version 2
$ErrorActionPreference = "Stop"
Import-Module Visio
New-VisioApplication
$doc = New-VisioDocument
$page = Get-VisioPage -ActivePage
$cells_dt = Get-VisioPageCells -Pages $page
Write-Host $cells_dt
$new_cells = New-VisioPageCells
$new_cells.PageHeight = 3
$new_cells.PageWidth = 6
Set-VisioPageCells -Cells $new_cells -Pages $pages
Set-StrictMode -Version 2
$ErrorActionPreference = "Stop"
Import-Module Visio
New-VisioApplication
$doc = New-VisioDocument
# The doc already has one page, add four more empty pages
New-VisioPage | Out-Null
New-VisioPage | Out-Null
New-VisioPage | Out-Null
New-VisioPage | Out-Null
$pages = Get-VisioPage
$pages_dt = Get-VisioPageCells -Pages $pages
Write-Host $pages_dt