tags:

views:

198

answers:

2

I have file with extension .dwg (AutoCAD) and I want to call that file from python console and present on web. Have any modules for .dwg extension or some other solution.

A: 

The best format for displaying these online would (imo) definitely be SVG. Recent browsers support SVG rendering natively; older ones (think IE6) may require an SVG plugin

So your best bet is probably using a command line convert tool like cad2svg (this is a free linux command line tool) which converts the DWG files to SVG. You can easily do this that from your Python program (using subprocess).

ChristopheD
A: 

Maybe there will be something you can use from this Summer Of Code project

http://groups.fsf.org/wiki/LibreDWG/SummerOfCode

http://groups.fsf.org/wiki/LibreDWG

gnibbler