← Back to team overview

kicad-developers team mailing list archive

Re: "Make Gerbers and drills zip"

 

I was working on a program to do this (over the Python API) because I
wanted to be able to drive deliverable generation from a makefile.

Code is here: https://github.com/johnbeard/kiplot

An example plot config (generates nearly all the possible outputs all
at once) is here:
https://github.com/johnbeard/kiplot/blob/master/docs/samples/generic_plot.kiplot.yaml

I got distracted by real life, but it's at least somewhat functional.

Interestingly, it can also be used to generate plots and run QA tests
on them (e.g. ensure Gerbers are sane, etc).

Cheers,

John

On Tue, Jul 31, 2018 at 5:25 PM, Jon Evans <jon@xxxxxxxxxxxxx> wrote:
> It would be nice if this were more formally supported instead of just being
> a thing that people figure out how to do :)  Python scripting is certainly
> one way.
> Altium has this capability -- they don't use a real script like Python, but
> more of a configuration file.
> But the key point is that it is often different for each project, so you
> want a nice way to take each script and customize it for the given PCB
> project, and then check it in with version control alongside the other
> design files.
> For example, you might have a "standard" output generation script, but then
> for a certain design you tweak it to turn off certain layers or to name the
> files a certain way.
>
> On Tue, Jul 31, 2018 at 12:23 PM Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx>
> wrote:
>>
>> I actually worked with the OSHPark folks to do this for KiCad back in
>> the V4 days so they could accept .kicad_pcb files.
>> On Tue, Jul 31, 2018 at 11:20 AM jp charras <jp.charras@xxxxxxxxxx> wrote:
>> >
>> > Le 31/07/2018 à 16:52, Jon Evans a écrit :
>> > > It would be nice to have a fully-scriptable "output job" system so
>> > > that you can save all the Gerber
>> > > generation settings, all the drill generation settings, etc together,
>> > > and set up a workflow of
>> > > generating files, naming them a certain way, packaging them in a ZIP,
>> > > etc.
>> >
>> > It could be made by a Python script.
>> > Attached a basic python script to create gerber and drill files from a
>> > board file.
>> >
>> > Some latest options (creating a job file or a drill file in gerber
>> > format) are not available for
>> > python scripts, but it should be easy (famous words) to add them to the
>> > Python scripting stuff.
>> >
>> > >
>> > > On Tue, Jul 31, 2018 at 10:24 AM Ben Hest <bombledmonk@xxxxxxxxx
>> > > <mailto:bombledmonk@xxxxxxxxx>> wrote:
>> > >
>> > >     I'd give that a thumbs up from as a single user's opinion.
>> > >
>> > >     On Tue, Jul 31, 2018 at 8:58 AM Adam Wolf
>> > > <adamwolf@xxxxxxxxxxxxxxxxxxxx
>> > >     <mailto:adamwolf@xxxxxxxxxxxxxxxxxxxx>> wrote:
>> > >
>> > >         100% percent of the time when I make drill files, I also want
>> > > to make
>> > >         gerbers, and I want a zip file for uploading as well.
>> > >
>> > >         Is there any interest in adding some way to do this
>> > > automatically?  It
>> > >         may be a little tricky since drills and Gerbers are two
>> > > different
>> > >         windows, but if this is considered a bad idea I will just stop
>> > >         thinking about it now.
>> > >
>> > >         Adam
>> >
>> > --
>> > Jean-Pierre CHARRAS
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~kicad-developers
>> > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~kicad-developers
>> > More help   : https://help.launchpad.net/ListHelp
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


References