Typed shape with layout and styling
Keep labels, colors, and placement consistent so regenerated diagrams are easy to compare.
Create Visio diagrams with shapes, connectors, and pages. No Visio installation required.
dotnet add package OfficeIMO.Visio Diagram generation from system data
Use inventory, workflow, or ownership data to emit diagrams that stay in sync with the systems they describe instead of drifting as hand-drawn files.
OfficeIMO.Visio lets you generate and modify .vsdx diagrams from pure .NET code. Build network topologies, org charts, flowcharts, and architecture diagrams without requiring Visio on the machine. The fluent builder API keeps diagram construction concise and readable.
| Diagram type | Typical source data | Outcome |
|---|---|---|
| Infrastructure topology | Inventory exports, deployment metadata, cloud resources | Repeatable architecture diagrams that stay in sync with real systems |
| Process and approval flows | Workflow definitions, queue stages, or policy steps | Clear step-by-step diagrams for operations and compliance teams |
| Org and service maps | HR systems, ownership registries, service catalogs | Diagrams that show teams, responsibilities, and platform boundaries |
| Release and runbook visuals | CI pipelines, deployment targets, or support procedures | Supporting diagrams that travel with Word reports and PowerPoint decks |
using OfficeIMO.Visio;
using var diagram = VisioDiagram.Create("Architecture.vsdx");
var page = diagram.AddPage("System Overview");
// Add shapes
var webServer = page.AddShape("Web Server", 2.0, 8.0);
webServer.FillColor = "#2563eb";
webServer.TextColor = "#ffffff";
var appServer = page.AddShape("App Server", 5.0, 8.0);
appServer.FillColor = "#059669";
appServer.TextColor = "#ffffff";
var database = page.AddShape("Database", 8.0, 8.0);
database.FillColor = "#7c3aed";
database.TextColor = "#ffffff";
var cache = page.AddShape("Cache", 5.0, 5.5);
cache.FillColor = "#dc2626";
cache.TextColor = "#ffffff";
// Connect shapes
page.AddConnector(webServer, appServer, "HTTPS");
page.AddConnector(appServer, database, "TCP/IP");
page.AddConnector(appServer, cache, "Redis");
diagram.Save();.vsdx file as part of a report build, architecture export, or operational handoff package.| Target Framework | Supported |
|---|---|
| .NET 10.0 | Yes |
| .NET 8.0 | Yes |
| .NET Standard 2.0 | Yes |
| .NET Framework 4.7.2 | Yes |
OfficeIMO.Visio runs on Windows, Linux, and macOS. Generated files open in Microsoft Visio and other VSDX-compatible viewers.
| Guide | Description |
|---|---|
| Visio documentation | Review the shape, page, and connector model before you build diagrams. |
| Getting Started | Set up the package and validate your first generated diagram. |
| OfficeIMO.Word | Pair diagrams with generated reports, architecture notes, or implementation docs. |
| OfficeIMO.PowerPoint | Turn the same topology or process data into stakeholder-ready slide decks. |