Get-VisioMaster
Import-Module Visio
New-VisioApplication
New-VisioDocument
$basic_u = Open-VisioDocument "basic_u.vss"
$master = Get-VisioMaster -Name "Rectangle" -Document $basic_u
$points = New-Object VisioAutomation.Geometry.Point(4,5)
$shape = New-VisioShape -Master $master -Position $points
Set-VisioText "Hello World" -Shape $shapeRetrieve masters the current document
Get-VisioMasterRetrieve masters from a specific document
Get-VisioMaster -Document $docRetrieve from the current document
Get-VisioMaster -Name "Rectangle"Retrieve from a specific document
Get-VisioMaster -Name "Rectangle" -Document $docLast updated