Author Topic: python DXF file layer splitter  (Read 583 times)

chieflbm

  • Newbie
  • *
  • Posts: 26
    • View Profile
python DXF file layer splitter
« on: June 16, 2017, 04:05:14 PM »
I couldn't find an easy way to split up the USGS maps I downloaded, so I wrote a small python script using the ezdxf python library. Hopefully someone else will find this useful. :)

It takes a filename as input, and outputs a filename_layered.dxf file, with each color put in it's own layer.

This let me split the topo lines, waterways, roads, text, and other markers from each other.

Enjoy.