kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24372
Re: pcbnew: DXF export missing Line option
Hi,
I've made a dxf exporter for mechanical layers of a kicad_pcb board
"Dwgs", "Cmts", "Edge", "Eco1", "Eco2", "F.Fab", "B.Fab"
the dxf file generated has:
- single line draw as it should be for mechanical interchange
- circle and arcs as circle and arcs as it should be for mechanical
interchange
- the pcb layers are written in the same DXF file in different layers
and colors
these options are missing in pcbnew plot (from version 4864)
https://forum.kicad.info/t/dxf-exporter-for-mechanical-layers-of-kicad-pcb-board/2885
https://github.com/easyw/kicadpcb2dxf
how to launch:
python kicadpcb2dxf.py -f kicad-board.kicad_pcb
the script doesn't have any dependencies and it is based on DXF R12
writer from ezdxf library
Hoping that could be useful for people, like me, that are using a lot
pcb and mechanical interchange :)
Maurice
On 12/04/2016 15.12, Wayne Stambaugh wrote:
Submit a patch or a merge request with your changes. I expect the
current behavior to be the default and the line output to be the option.
If you haven't done so, please look at the KiCad coding policy before
submitting your changes. Also, consider your changes carefully. Rather
than attempting to mash together the old DXF line plotting code with the
current DXF plotting code, consider creating a separate DXF_LINE_PLOTTER
object instead. I don't want a bunch of conditional code in the current
DXF_PLOTTER code. You may have to factor out some of the common DXF
plot code and create a DXF_PLOTTER_BASE class that you can use to derive
DXF_PLOTTER and your new DXF_LINE_PLOTTER class.
References