Gogoo Gogoo - 3 months ago 53
Python Question

how to open dwg file extension with python

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.


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