.NET Visio Diagram API to Create, Edit, Export, and Process Diagrams

The ultimate .NET diagramming API to flawlessly generate, manipulate, and convert Microsoft Visio file formats such as VSD, VDX, VSX, VSX, VSSX, VTX, and VTSX with C#, ASP.NET, and VB.NET-based Visio diagram file processing apps.

Download Free TrialView All APIs

A full-featured .NET API for processing Microsoft Visio diagrams

Aspose.Diagram for .NET is a flexible and comprehensive Visio diagram API allowing software and app developers to create powerful Visio file processing apps across C#, ASP.NET, and VB.NET. With the help of this native .NET diagramming API, you can build mobile applications, desktop solutions, and tools for web interfaces to create, modify, transform, and export Microsoft Visio diagrams. Aspose.Diagram for .NET library supports popular Visio file formats such as VSD, VSDX, VTX, VDX, VSX, VSSX, VTSX, VSDM, and VSSM. You can quickly and easily develop sophisticated diagram conversion solutions using this .NET Visio diagram API and convert your Visio files to PDF, JPG, PNG, BMP, HTML, XPS, SVG, and EMF file formats.

Among many of its advanced Visio file processing features, Aspose.Diagram for .NET enables rotating shapes, retrieving information about connectors and fonts, grouping shapes, injecting images into drawings, adding new pages to Visio drawings, and doing much more. Furthermore, you can also draw rectangles, polylines, Bezier, and many other shapes on Visio pages.

Getting Started

Please check the prerequisites on the System Requirements page before setting up the .NET diagramming API for an optimized installation and API usage experience.

Aspose.Diagram for .NET Installation

To install Aspose.Diagram for .NET API, you can download the DLLs or the MSI installer from the downloads section. Or, you can use the NuGet package to set up the Visio diagram API for .NET. The command for the package manager console is given below:

PM > Install-Package Aspose.Diagram 

How to Create Visio Diagrams From Scratch and Convert Visio to PDF in .NET

Developers can programmatically create MS Visio diagrams from scratch using Aspose.Diagram for .NET library. You can effortlessly insert new pages and shapes, or manipulate different shape properties in the diagram files you create. Independently converting the VSD and VSDX Visio diagram formats to PDF files in high fidelity is also supported by the .NET diagramming API.

Create Visio Diagrams from Scratch in .NET

Aspose.Diagram for .NET API is a complete diagram manipulation solution enabling developers to create Visio diagrams loaded with all essential elements such as shapes, flowcharts, comments, and much more. You can use the .NET diagram API to create Visio documents from scratch with the help of the below-given steps and information:

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Diagrams();
// Create a directory if it is not already present.
bool IsExists = System.IO.Directory.Exists(dataDir);
if (!IsExists)
// Initialize a new Visio
Diagram diagram = new Diagram();
dataDir = dataDir + "CreateDiagram_out.vsdx";
// Save in the VSDX format
diagram.Save(dataDir, SaveFileFormat.VSDX);

Convert MS Visio Diagrams to PDF in .NET

Converting files to PDF format makes sharing and accessing them easier across multiple devices. Aspose.Diagram for .NET API allows converting Visio diagrams to PDF format within your C# .NET apps. You can programmatically convert VSD or VSDX to PDF with high conversion quality. The following steps and information will help you in achieving this:

  • Initialize the Diagram class object to load the input Visio file to convert.
  • Instantiate the PdfSaveOptions class object.
  • Set file properties like page count and page index.
  • Save the output file as PDF.
// Load Visio diagram
Aspose.Diagram.Diagram diagram = new Aspose.Diagram.Diagram("Sample.vsd");

// Declare PdfSaveOptions object
Aspose.Diagram.Saving.PdfSaveOptions saveOptions = new Aspose.Diagram.Saving.PdfSaveOptions();

// Number of pages to render
saveOptions.PageCount = 2;

// Set first page index
saveOptions.PageIndex = 1;

// Save Visio diagram to PDF
diagram.Save("PDF_out.pdf", saveOptions);


More working examples of Aspose.Diagram for .NET API are available on the GitHub Examples page. We offer free online apps of Aspose.Diagram to edit, view, convert, merge, watermark, split, and compress Microsoft Visio diagram files on the fly using your mobile or desktop devices. Please feel free to try the online apps for manipulating Visio diagrams from anywhere.

Independently manipulate and print Visio files

Aspose.Diagram for .NET API allows accessing and reading data from Microsoft Visio files, processing it, and printing the processed files in high quality with multiple printing options, using minimum coding. You do not need to install Microsoft Office or Microsoft Visio when processing Visio diagram files with Aspose.Diagram for .NET, giving you an independent user experience.


1. How can I convert Microsoft Visio Diagrams in .NET?

Converting Visio diagrams in .NET is quick and easy using Aspose.Diagram for .NET API. Only a few lines of .NET coding are needed to convert your VSD, VSDX, VSX, VTX, VDX, VSDM, and other diagram files to different file formats.

2. How long it takes to convert or process Visio diagrams?

The .NET diagram API works fast and completes your diagram conversion requests in no time.

3. Is it safe to process Visio diagrams using the .NET API?

You can be sure of the security of your diagram files while processing them using Aspose.Diagram for .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process MS Visio diagrams on Mac OS, Windows, or Linux?

Yes, the diagramming API for .NET works across different OS, frameworks, and operating environments. You can use it on the platform of your choice and it does not require any additional software installation to function.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs