<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-cad-cloud</artifactId>
    <version>17.11</version>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-cad-cloud', version: '17.11')
copied!  
<dependency org="com.aspose" name="aspose-cad-cloud" rev="17.11">
    <artifact name="aspose-cad-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-cad-cloud" % "17.11"
copied!  

Java SDK to Process AutoCAD® Drawings in the Cloud

banner

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

Aspose.CAD Cloud SDK for Java helps you work with computer aided design (CAD) file formats within your cloud-based Java Apps, without installing any 3rd party software. It is a wrapper around Aspose.CAD Cloud REST APIs.

CAD Cloud Processing Features

  • Get image properties of a CAD drawing
  • Change the scale of an AutoCAD® sketch
  • Ability to resize CAD images
  • Flip and rotate a CAD image
  • Export CAD drawings to PDF file format
  • Convert CAD Drawings to BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF and WMF
  • Support for 3D Solids (Conic, Sphere, Torus, Cylinder, Box, Wedge)
  • Support for DXF / DWG (Wired models, Basic view cube positions, 3D Faces)
  • Support for DXF / DGN (Surfaces, Meshes).

CAD Drawing Cloud Storage Features

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default).
  • Create, copy, move and delete folders.
  • Copy and move files and folders accross separate storages in scope of a single operation.
  • Check if certain file, folder or storage exists.

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)

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven

Prerequisites

To use Aspose.CAD Cloud SDK for Java you need to register an account with Aspose Cloud and lookup/create Client ID and Client Secret at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Install from Maven

Add Aspose Cloud repository to your application pom.xml

<profiles>
    <profile>
        <repositories>
            <repository>
                <id>asposeJavaAPI</id>
                <name>Aspose Java API</name>
                <url>https://releases.aspose.cloud/java/repo/</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <releases>
                    <enabled>true</enabled>
                </releases>
            </repository>
        </repositories>
        <id>repositoryProfile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
    </profile>
</profiles>

Install from source

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-cad-cloud</artifactId>
    <version>20.11</version>
</dependency>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/aspose-cad-cloud-20.11.jar
  • target/lib/*.jar

Convert Drawing to PDF in Java

// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).

CadApi cadApi = new CadApi("MY_CLIENT_SECRET", "MY_CLIENT_ID");

GetDrawingSaveAsRequest getSaveRequest = new GetDrawingSaveAsRequest("sample.dxf", "pdf", "InputFolder", "output.pdf", "Storage Name");

cadApi.getDrawingSaveAs(getSaveRequest);

Licensing

All Aspose.CAD Cloud SDKs, helper scripts and templates are licensed under MIT License.

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
24.5.2September 2, 2024
24.5.1August 29, 2024
24.5June 5, 2024
24.1May 3, 2024
20.11January 4, 2021
17.11January 18, 2019