Skip to content

Repository files navigation

VisioAutomation.VDX

Create simple Visio VDX files without installing or automating Microsoft Visio.

Status: feature development remains paused; correctness, tests, and build maintenance are included in the VisioAutomation ownership handoff.

The library targets .NET Framework 4.5.2, matching VisioAutomation. It has no Visio or COM runtime dependency. These source changes are unreleased; see CHANGELOG.md before upgrading from the existing NuGet package.

var drawing = new VisioAutomation.VDX.Elements.Drawing(new VisioAutomation.VDX.Template());
var page = new VisioAutomation.VDX.Elements.Page(8, 5);
drawing.Pages.Add(page);
var master = drawing.GetMasterMetaData("Rectangle");
var shape = new VisioAutomation.VDX.Elements.Shape(master.ID, 4, 2.5, 3, 1);
page.Shapes.Add(shape);
shape.Text.Add("Hello, Visio");
drawing.Save("hello.vdx");

drawing.ToXml() returns an independent XDocument for inspection or custom output. Preserve text whitespace when writing it; Save handles that automatically. Save may be called repeatedly after editing the model.

The library and pure tests need no Visio installation. The separate integration suite uses real Visio to check generated documents. VDX generation is distinct from automating Visio through VisioAutomation or VisioPowerShell.

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages