Discussion:
[kicad-users] Python Script "Step and Repeat"?
sineysitch@yahoo.co.uk [kicad-users]
2018-01-26 11:27:48 UTC
Permalink
Roughly spaeking, how would a KiCad Python script look which does "step and repeat" for a pre-defined input rectangle selection?

E.g. If it was C, a function like this:

void StepRepeat(x0,y0,x1,y1,dx,dy,nX,nY);
Takes as input a rectangular selection (x0,y0,x1,y1) Repeats nX times with a spacing dx Repeats nY times with a spacing dy With the result of a rectangular array of identical "mini-boards".
bobcousins42@googlemail.com [kicad-users]
2018-01-26 15:14:46 UTC
Permalink
I imagine it would be a lot like https://github.com/tlantela/KiCAD_layout_cloner/blob/master/layout_cloner.py https://github.com/tlantela/KiCAD_layout_cloner/blob/master/layout_cloner.py
Andrew Armstrong andrew@aaelectron.co.uk [kicad-users]
2018-01-29 23:00:06 UTC
Permalink
I have been trying to use a downloaded script to layout identical blocks
the same as the first one I laid out. The problem is I can't find any
instructions about how to make a script run.

I tried import [full path to script] and there was a syntax error. Just
using [full path to script] in the console window also gave a syntax
error. What is the secret?

Andrew
Post by ***@googlemail.com [kicad-users]
I imagine it would be a lot like
https://github.com/tlantela/KiCAD_layout_cloner/blob/master/layout_cloner.py
Continue reading on narkive:
Loading...