Skip to content

Python script to convert DWG (AutoCAD) to DXF file using TeighaFileConverter (ODA File Converter)

License

Notifications You must be signed in to change notification settings

skyway22/dwg_to_dxf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Convert DWG to DXF

Description

Python script to convert DWG (AutoCAD) to DXF file using TeighaFileConverter (ODA File Converter) and subprocess library.

Requirements

Install ODA Converter (formerly Teigha Converter) and add the installation path to the environment variable.

Configuration

Edit dwg_to_dxf.py file and change this variables by yours:

  • TEIGHA_PATH: If the environment variable is defined just use "ODAFileConverter".
  • INPUT_FOLDER: Input folder where DWG files are located.
  • OUTPUT_FOLDER = Output folder where you want to save DXF files (usually is the same that INPUT_FOLDER).
  • OUTVER: Output version (ACAD9, ACAD10, ACAD12, ACAD14, ACAD2000, ACAD2004, ACAD2007, ACAD20010, ACAD2013, ACAD2018).
  • OUTFORMAT: Output format (DXF).
  • RECURSIVE: Read recursive subfolders? (0, 1).
  • AUDIT: Audit every input DWG file? (0, 1).
  • INPUTFILTER: Input filter (*.DWG, *.DXF).

Authors

Contributors

  • Mariano Sanz, cartographer. <majafrades[at]gmail[dot]com>

About

Python script to convert DWG (AutoCAD) to DXF file using TeighaFileConverter (ODA File Converter)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%