Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top