Format shapes with cells
Formatting the Shapes that were dropped
$shape_cells = New-VisioShapeCells
$shape_cells.XFormWidth = 2
$shape_cells.XFormHeight = 4
$shape_cells.FillForeground = "rgb(255,0,0)"
$shape_cells.LineWeight = "5 pt"
$basic_u = Open-VisioDocument "basic_u.vss"
$masters = Get-VisioMaster -Name "Rectangle","Triangle","Circle" -Document $basic_u
$points = @(
New-VisioPoint 4 5
New-VisioPoint 6 1
New-VisioPoint 0 0
)
$shape = New-VisioShape -Master $masters -Position $points -Cells $shape_cells

Last updated