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 $shapeGet-VisioMasterGet-VisioMaster -Document $docGet-VisioMaster -Name "Rectangle"Last updated