AutoCAD File Processing Node.js Cloud REST API
Aspose.CAD Cloud is a true REST API that enables you to perform a wide range of CAD and BIM drawings processing operations including manipulation, export and conversion in a cloud, with zero initial costs.
This repository contains Aspose.CAD Cloud Node.js SDK source code which is written in Node.js. This SDK allows you to work with Aspose.CAD Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost and gain all benefits of strong types and IDE highlights.
CAD Processing Features
- Export CAD drawings to other file formats.
- Get image properties of a CAD drawing.
- Change the scale of an AutoCAD sketch.
- Flip and rotate a CAD image.
- Upload or download CAD drawings to the cloud storage.
- Copy, move, delete CAD files from the cloud storage.
Read & Write CAD Formats
DXF (R12/2007/2010)
Save CAD As
Fixed Layout: PDF (as a vector and as a raster)
Images: BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF, WMF
Read CAD Formats
DWG (13, 14, 2000, 2004), DWG (2010, 2013, 2014), DWG (2015, 2017, 2018), DWT (13, 14, 2000, 2004), DWT (2010, 2013, 2014), DWT (2015, 2017, 2018), DWF, DGN v7, IGES (IGS), PLT, Industry Foundation Classes (IFC), STereoLithography (STL)
Look at API Reference for full API specification.
For the complete list of use-cases, please refer to the format support document to see what you can achieve!
Detailed official documentation can be found at the following link.
Getting Started
- Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
- Minimum requirements. This SDK requires Node.js 6.x and higher.
- Install Aspose.CAD Cloud Node.Js SDK.
Please, add the following npm package to your project.json as a dependency.
{
"dependencies": {
"@asposecloud/aspose-cad-cloud": "24.5.2"
}
}
Import the dependencies to your code as follows.
import * as cad from "@asposecloud/aspose-cad-cloud";
How to use the SDK?
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get NPM distribution (recommended). For more details, please visit our documentation website.
Aspose.CAD Cloud-hosted service VS on-premise deployment
You can choose either to use Aspose.CAD Cloud-hosted drawings processing service (the standard way) or the Docker image from Docker Hub deployed on-premise to serve the requests - https://hub.docker.com/r/aspose/cad-cloud.
The details about key differences and deployment process is described on the dedicated Docker Hub page.
Prerequisites
To use Aspose CAD for Cloud Java SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.
The solution is updated using code generator.
Convert DWG to PNG in Node.Js
const cadApi = new CadApi("MY_CLIENT_SECRET", "MY_CLIENT_ID");
const request: GetDrawingSaveAsRequest = new GetDrawingSaveAsRequest(
{
name: "inputDrawing.dxf",
outputFormat: "png",
folder: "InputFolder",
storage: "My_Storage_Name",
outPath: "output.png"
});
await cadApi.getDrawingSaveAs(request);
Tests
Tests from this repo are intended for internal usage only.
Dependencies
Licensing
All Aspose.CAD Cloud SDKs, helper scripts and templates are licensed under MIT License.
Aspose.CAD Cloud SDKs in Popular Languages
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial|