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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
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
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}
.
Format | Description | Load | Save |
---|
VSDX | MS Visio Drawing that uses OPC (Open Packaging Conventions) | ✔️ | ✔️ |
VDX | Drawing or chart created with Microsoft Visio | ✔️ | ✔️ |
VSD | Visio Drawing (Vector Graphics File Format) | ✔️ | |
VSX | Visio Stencil XML file type | ✔️ | ✔️ |
VTX | XML for Visio (Template File) | ✔️ | ✔️ |
VSSX | VSSX file that has objects to be included in technical drawings | ✔️ | ✔️ |
VSTX | MS Visio Drawing Template | ✔️ | ✔️ |
VSDM | Visio Macro-Enabled Drawing file type | ✔️ | ✔️ |
VSSM | Stores collection of shapes | ✔️ | ✔️ |
VSTM | VSTM that contains both Drawing template and macros | ✔️ | ✔️ |
VDW | Visio Web Drawing File Type | ✔️ | |
VSS | The Visio Stencil File Type | ✔️ | |
VST | VST Template File | ✔️ | |
PDF | Saves the drawing in PDF (Portable Document Format) | | ✔️ |
XPS | Saves the drawing in XPS format | | ✔️ |
XAML | Saves the drawing in XAML format | | ✔️ |
SWF | Saves the drawing in Adobe Flash File | | ✔️ |
SVG | Saves the drawing in Scalable Vector Graphics (An XML-based vector image format) | | ✔️ |
EMF | Saves the drawing in Enhanced MetaFile | | ✔️ |
JPEG | Saves the drawing in JPEG Format | | ✔️ |
PNG | Saves the drawing in PNG Format | | ✔️ |
BMP | Saves the drawing in BMP Format | | ✔️ |
TIFF | Saves the drawing as Single or Multi-Page TIFF Image | | ✔️ |
HTML | Saves the drawing in HTML Format | | ✔️ |
Platform | Description |
---|
.NET | Supported via REST API in .NET applications. |
Java | Supported via REST API in Java applications. |
PHP | Supported via REST API in PHP applications. |
Ruby | Supported via REST API in Ruby applications. |
Python | Supported via REST API in Python applications. |
Node.js | Supported via REST API in Node.js applications. |
Web | Accessible from web-based platforms via REST API. |
Desktop | Compatible with desktop environments via REST API. |
Mobile | Supported on mobile platforms through REST API. |
Cloud | Works 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
Package Manager