# Automate Visio Diagrams

Automate Visio Diagrams on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

PSWriteOffice

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

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**722**

Forks**84**

Open issues**2**

PowerShell Gallery downloads**5184525**

Release**v3.6.2**

Language: C# Updated: 2026-11-22

Documentation

Create, inspect, arrange, stencil, and export VSDX diagrams from PowerShell. Includes PowerShell examples, validation notes, and cmdlet links.

The Visio family exports 20 commands for VSDX authoring and inspection. Build pages from rectangles, ellipses, diamonds, containers, text boxes, connectors, and stencil shapes; arrange the result; save VSDX; and export SVG or PNG review artifacts.

## Create with primitives or stencils

Use `New-OfficeVisio` and `Add-OfficeVisioPage` to start a diagram. Primitive commands are useful for lightweight flowcharts and architecture maps. For recognizable product and infrastructure shapes, load a built-in or imported catalog and use `Add-OfficeVisioStencilShape`.

Stencil commands can discover catalogs, find shapes, import packages, and export preview galleries. That separates shape selection from document placement and makes diagram scripts repeatable across environments.

## Connect and arrange

`Add-OfficeVisioConnector` establishes graph relationships. Use layout and arrangement commands after content is complete, then apply targeted shape-layout updates only when the output needs manual refinement.

## Inspect and review

`Get-OfficeVisio` and `Get-OfficeVisioInfo` expose document and diagram evidence. `ConvertTo-OfficeVisioSvg` and `ConvertTo-OfficeVisioPng` provide portable review output without replacing the editable VSDX source.

See the [Visio examples](https://github.com/EvotecIT/PSWriteOffice/tree/main/Examples/Visio) and search the [command reference](/projects/pswriteoffice/api/) for `OfficeVisio`.

<!-- PowerForge markdown artifact sha256:268DA610F78E507671483E06969A8F1069A83569AF2F2160E3F4600246F6CB1F -->
