Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any library to Convert CAD to SVG? [closed]

Tags:

java

c++

svg

cad

I am looking for a library, which can convert CAD files(DWG, DXF) into SVG format. The library should be able to run on Linux platform. Can anyone tell me which library can do this?

like image 972
Joe SHI Avatar asked Dec 26 '12 03:12

Joe SHI


People also ask

Can you convert CAD to SVG?

CAD Conversion App allows easily export DWG to SVG drawings and save the result to PDF, PSD, WMF, SVG, PNG, JPG, PSD and other raster images, vector images. Conversion App is a free application powered by Aspose. CAD - professional .

Can DXF Convert to SVG?

The DXF file format is a CAD file format that was designed to produce an exact representation of AutoCad DWF files. Although Origin is not designed to accept DXF files, you can use Inkscape to convert some of your two-dimensional data into an SVG file that is cuttable with Origin.

Is DXF same as SVG?

SVG stands for Scalable Vector Graphic. Essentially it's a drawing that you can change the scale of without losing any quality. DXF stands for Drawing eXchange File. This is an AutoCAD file that is open sourced so multiple programs can open it instead of the AutoCAD only version DWG.


2 Answers

Try these tools.

  1. http://etc.nkadesign.com/Download/Cad2svg

cad2svg is a simple Linux command-line utility that automatically converts AutoCAD files (both dwg and dxf) to SVG

This link is not working anymore:

2) http://davinder.in/blog/how-install-libredwg-ubuntu

GNU LibreDWG is a free C library to handle DWG files.

  1. http://kabeja.sourceforge.net/

Kabeja is a Java library for parsing, processing and converting Autodesk's DXF format

  1. http://sourceforge.net/projects/dxf-svg-convert

A dxf to svg converter.
Can be used to create pure svg files or Inkscape svg files with extra information like layers.

like image 66
Jirilmon Avatar answered Oct 08 '22 09:10

Jirilmon


The OpenDesignAlliance currently provides the only useful implementation of such a thing.
You want Theiga and Theiga for .NET and Java .

In 2013, ODA used the Java support provided by SWIG to create "Teigha for Java".
Teigha for Java includes the following:

  • Java access to the full Teigha API for both .dwg and .dgn files.
  • Support for Windows, Linux and Mac platforms. API very similar to Teigha.NET, simplifying the transition between languages.

Also, if you're using C#, WoutWare CadLib would be a very good fully managed commercial option for converting DWG/DXF to SVG (while preserving layers). And it also works on Linux and Mac with .NET-Core (no native binaries required).

like image 37
Stefan Steiger Avatar answered Oct 08 '22 10:10

Stefan Steiger