Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Add-OfficeVisioDiamond

Aliases: VisioDiamond
Module
PSWriteOffice
Aliases
VisioDiamond
Inputs
OfficeIMO.Visio.VisioPage
Outputs
OfficeIMO.Visio.VisioShape

Adds a diamond shape to the current Visio page.

Syntax

Add-OfficeVisioDiamond
[-FillColor <String>]
[-Height <Double>]
[-Key <String>]
[-LineColor <String>]
[-LineWeight <Double>]
[-Name <String>]
[-Page <VisioPage>]
[-PassThru]
[[-Text] <String>]
[-Unit <Inches|Centimeters|Millimeters>]
[-Width <Double>]
[-X <Double>]
[-Y <Double>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Add a decision shape.

OfficeVisio -Path .\Flow.vsdx {
    VisioDiamond -Key review -Text 'Approved?' -X 4 -Y 4 -Width 1.2 -Height 1 -FillColor '#FEF3C7'
}

Adds a decision diamond to the active Visio page.

Parameters

-FillColor String optional
Fill color name or hex value.
-Height Double optional
Shape height.
-Key String optional
DSL key used by connector commands.
-LineColor String optional
Line color name or hex value.
-LineWeight Double optional
Line weight.
-Name String optional
Optional shape name.
-Page VisioPage optionalpipeline: True (ByValue)
Target page. Optional inside VisioPage or OfficeVisio.
-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-Text String optionalposition: 0
Text placed inside the shape.
-Unit VisioMeasurementUnit optional
Measurement unit for coordinates and dimensions.
Possible values: Inches, Centimeters, Millimeters
-Width Double optional
Shape width.
-X Double optional
X coordinate of the shape origin.
-Y Double optional
Y coordinate of the shape origin.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.