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.

Download Aspose.CAD for JavaScript via .NET for CAD and BIM FIle Formats Processing

Aspose.CAD for JavaScript via .NET is a CAD files Processing API that allows the developers to work with CAD and BIM documents without needing AutoCAD or any other CAD software to be installed. You can easily use Aspose.CAD for JavaScript via .NET from npm with the following command.

>

Product Page | Docs | Demos | Blog | Code Samples | Free Support | Temporary License | EULA

Features

  • Supports the latest versions of DWG, DWF, DWFX, DWT, DGN, STL, OBJ, STL, CF2, IGES(IGS), IFC, DXB, PLT, COLLADA(DAE), STEP(STP) & DXF formats.
  • Convert CAD to PDF.
  • Convert CAD to images.
  • Track files processing progress.
  • Manipulate drawing entities and blocks.
  • Select and convert specific layouts of CAD drawings.
  • Select and convert specific layers of CAD drawings.
  • Adjust CAD drawing size before rendering.

Supported DXF/DWG versions

Aspose.CAD for JavaScript supports DXF version AC1032 (AutoCAD 2018-2024) and we also support DWG version 2018 (AC1032) compatible with AutoCAD 2018-2024.

Conversion Features

Supported Read CAD Formats

AutoCAD®: DWG, DGN, DWT, DWF, DWFx
Plotter Configuration: PC3
Data Model: IFC
CAD Data Exchange: IGS(IGES)
3D Printing: STL
Vector Based Plotter: PLT
3D Package Design: CF2
Others: Collada(DAE), DXB, 3DS, U3D

Supported Read & Write CAD Formats

AutoCAD®: DXF (Write feature is partially supported) 3D Geometry: OBJ
GL Binary: GLTF/GLB
Scalable Vector Graphics: SVG Others: FBX, STEP(STP)

Save CAD files As

Fixed Layout: PDF
Vector Image: WMF, EMF, CGM
Raster Image: TIFF, JPEG, PNG, GIF, BMP, PSD, JP2, WEBP, DICOM

Supported File Formats

The following table indicates the file formats that Aspose.CAD for JavaScript can load and Save.

FormatDescriptionLoadSaveRemarks
PDFPortable Document FormatNoYes 
CGMComputer Graphics Metafile for 2D vector graphicsYesYes 
SVGScalable Vector Graphics (An XML-based vector image format)YesYes 
JPEGJPEG FormatYesYes 
EMFEnhanced metafile format (EMF)NoYes 
PNGPNG FormatYesYes 
BMPBMP FormatYesYes 
GIFGraphic Interchange FormatYesYes 
TIFFSingle or Multi-Page TIFF ImageYesYes 

Platform Independence

Aspose.CAD for JavaScript can be used via JavaScript or TypeScript scripts on any platfrom like Web through browser or on server side via Node.Js.

Get Started

Run npm i aspose-cad to fetch the package. If you already have Aspose.CAD for JavaScript and want to get the latest version, please run npm update aspose-cad.

To learn more about Aspose.CAD for JavaScript and explore the basic requirements and features of the library, check out the following Aspose.CAD Documentation pages for other use cases.

Example of DGN to PNG convertion

Aspose.CAD for JavaScript is a CAD editing, export and publshing API that lets you convert any existing DXF drawing to PNG format. The process of export of DXF to PNG can be flexibly customized.

Below code snippet follows these steps:

  1. Link corresponding scripts from module
  2. Load an instance of user’s DGN drawing by handling file selection event.
  3. Call static method ’load’ of ‘Image’ class.
  4. Save output PNG document by calling ‘save’ method.
<script src="./node_modules/aspose-cad/dotnet.js"></script>
<script type="module" src="./node_modules/aspose-cad/es2015/index-js.js"></script>

async onFileSelected(event) {
 const file: File = event.target.files[0];
 file.arrayBuffer().then(async buff => {
  let x = new Uint8Array(buff);
  this.imgFile = await Image.load(x);
  var exportedFile = await Image.save(this.imgFile, new PngOptions());
  var blob = new Blob([exportedFile], { type: 'application/octet-stream' });
  });
}

Direct Download