Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Docs Swagger Examples Blog Support Release Notes Dashboard

Installation

The package is available at nuget.org and it can be installed via package manager console by executing following command:

PM> NuGet\Install-Package Aspose.Diagram-Cloud

Version NuGet NuGet-AsposeCloud


Create & Manage Visio® Diagrams Cloud REST API

Aspose.Diagram Cloud SDK for .NET allows developers to create, convert, and manage Microsoft Visio® diagrams directly within their .NET applications without the need for Microsoft Visio® installation. The SDK supports various diagram file formats like VSDX, VDX, PDF, and more, enabling seamless integration with cloud services and REST APIs. Developers can upload, download, and manipulate diagrams across multiple platforms, including web, desktop, and mobile. With OAuth authentication, this SDK ensures secure and flexible document processing in the cloud. Perfect for .NET developers seeking to work with Visio® diagrams in their cloud apps.

Convert Diagram File

  • Convert Format: Convert diagram files to different formats using /diagram/{name}/SaveAs.
  • Save Options: Convert diagrams to formats like PDF and retrieve the saved link.

Get Diagram Info

  • Retrieve Info: Get diagram details such as page names and shapes via /diagram/{name}.

Upload Diagram File

  • Upload to Cloud: Upload a diagram file to Cloud Storage using /diagram/{name}/upload.

Create Diagram File

  • Create New: Create an empty diagram file in a specified format using /diagram/{name}.

Manage Files and Storage

  • Download File: Download files from Cloud Storage using /diagram/storage/file/{path}.
  • Upload File: Upload files to Cloud Storage using /diagram/storage/file/{path}.
  • Copy File: Copy files to new locations on Cloud Storage using /diagram/storage/file/copy/{srcPath}.
  • Move File: Move files on Cloud Storage using /diagram/storage/file/move/{srcPath}.
  • Delete File: Delete files from Cloud Storage using /diagram/storage/file/{path}.

Supported File Formats

FormatDescriptionLoadSave
VSDXMS Visio Drawing that uses OPC (Open Packaging Conventions)✔️✔️
VDXDrawing or chart created with Microsoft Visio✔️✔️
VSDVisio Drawing (Vector Graphics File Format)✔️
VSXVisio Stencil XML file type✔️✔️
VTXXML for Visio (Template File)✔️✔️
VSSXVSSX file that has objects to be included in technical drawings✔️✔️
VSTXMS Visio Drawing Template✔️✔️
VSDMVisio Macro-Enabled Drawing file type✔️✔️
VSSMStores collection of shapes✔️✔️
VSTMVSTM that contains both Drawing template and macros✔️✔️
VDWVisio Web Drawing File Type✔️
VSSThe Visio Stencil File Type✔️
VSTVST Template File✔️
PDFSaves the drawing in PDF (Portable Document Format)✔️
XPSSaves the drawing in XPS format✔️
XAMLSaves the drawing in XAML format✔️
SWFSaves the drawing in Adobe Flash File✔️
SVGSaves the drawing in Scalable Vector Graphics (An XML-based vector image format)✔️
EMFSaves the drawing in Enhanced MetaFile✔️
JPEGSaves the drawing in JPEG Format✔️
PNGSaves the drawing in PNG Format✔️
BMPSaves the drawing in BMP Format✔️
TIFFSaves the drawing as Single or Multi-Page TIFF Image✔️
HTMLSaves the drawing in HTML Format✔️

Supported Platforms

PlatformDescription
.NETSupported via REST API in .NET applications.
JavaSupported via REST API in Java applications.
PHPSupported via REST API in PHP applications.
RubySupported via REST API in Ruby applications.
PythonSupported via REST API in Python applications.
Node.jsSupported via REST API in Node.js applications.
WebAccessible from web-based platforms via REST API.
DesktopCompatible with desktop environments via REST API.
MobileSupported on mobile platforms through REST API.
CloudWorks with various cloud platforms using REST API.

Get Started

Create an Account

Go to Aspose for Cloud and create an account. Obtain your application information.

Install Aspose.Diagram Cloud SDK for .NET

Open the Package Manager Console in Visual Studio and execute the following command to install the SDK:

Install-Package Aspose.Diagram-Cloud

Upgrade the SDK (if needed)

To update to the latest version of Aspose.Diagram Cloud SDK for .NET, run the following command:

Update-Package Aspose.Diagram-Cloud

Using Aspose.Diagram Cloud SDK for .NET

Learn how to use Aspose.Diagram Cloud SDK in C# to create and manage Visio diagrams via REST API. Perfect for .NET developers working with diagram files in formats like VDX.

This C# example demonstrates how to create a new Visio diagram file using the Aspose.Diagram Cloud SDK. The example fetches an OAuth token for authorization and utilizes the Aspose API to create and manage diagram files in the cloud.

Key Points for Developers

1. OAuth Authentication

This example fetches an OAuth token for authentication, ensuring secure API communication.

2. Cloud Diagram Creation

Use the Aspose.Diagram Cloud API to create diagram files like VDX directly in cloud storage.

3. REST API Integration

Easily integrate this API into your .NET applications to manage Visio diagrams without worrying about platform limitations.

// For complete examples and data files, visit https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-dotnet

using Aspose.Diagram.Cloud.SDK.Api;  // Import the Aspose Diagram API
using Aspose.Diagram.Cloud.SDK.Client;  // Import the client for handling API calls
using Aspose.Diagram.Cloud.SDK.Model;  // Import the model classes
using Aspose.Storage.Cloud.Sdk.Api;  // Import the Aspose Storage API
using Aspose.Storage.Cloud.Sdk.Model.Requests;  // Import the requests for storage operations
using System;
using System.Collections.Generic;

namespace Aspose.Diagram_Cloud_APIs_Examples
{
    class DiagramExamples
    {
        // Client and configuration for making API calls
        protected ApiClient client;
        protected Configuration config;
        protected static OAuthApi oauth2 = null;  // OAuth for authentication
        protected string grantType = "client_credentials";  // Grant type for OAuth
        protected string clientId = "";  // Your client ID (App SID from https://dashboard.aspose.cloud/)
        protected string clientSecret = "";  // Your client secret (App Key from https://dashboard.aspose.cloud/)
        protected static string accesstoken;  // Access token for making requests
        protected string refreshtoken;

        static void Main(string[] args)
        {
            DiagramExamples diagramExamples = new DiagramExamples();
            
            // Call to create a new diagram file in the cloud
            diagramExamples.PutCreate();
        }

        // Method to create a new diagram file using Aspose.Diagram API
        private void PutCreate()
        {
            // Initialize the DiagramFile API with the required configuration
            DiagramFileApi instance = new DiagramFileApi(GetConfiguration());

            string name = "file_get_1.vdx";  // Name of the diagram file to be created
            bool isOverwrite = true;  // Overwrite if the file already exists
            string folder = null;  // Folder location in cloud storage (null to use root)

            // Call API to create the diagram file in the cloud
            var response = instance.DiagramFilePutCreate(name, folder, isOverwrite);
        }

        // Method to set up the API configuration with OAuth authentication
        private Configuration GetConfiguration()
        {
            if (oauth2 == null)
            {
                // Initialize OAuth for token generation
                oauth2 = new OAuthApi("https://api.aspose.cloud");
                
                // Get OAuth token using client credentials
                var oauth2response = oauth2.OAuthPost(grantType, clientId, clientSecret);
                accesstoken = oauth2response.AccessToken;  // Store access token
                refreshtoken = oauth2response.RefreshToken;  // Store refresh token
            }

            // Set the authorization header with the Bearer token
            Dictionary<string, string> headerParameters = new Dictionary<string, string>
            {
                { "Authorization", "Bearer " + accesstoken }
            };

            // Initialize the API client with the authorization header
            client = new ApiClient();
            config = new Configuration(client, headerParameters);
            return config;
        }
    }
}

Aspose.Diagram Cloud SKDs

GitHub

GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub

Package Manager

NuGet Maven Composer PyPI RubyGems Node.js Android Perl Swift


Docs Swagger Examples Blog Support Release Notes Dashboard


 English