The script pcb-dim
is designed to output the positions of
elements on a PCB. The list of elements is defined in a configuration
file. All of the positions are relative to the lower left corner of
the PCB output.
N.B. This script may not work for all PCBs. I wrote sufficient code to work with my PCBs not for all possible PCBs.
The script refdes-update
is designed to change the
reference resignator (refdes) attributes of schematic symbols in
gschem schematics.
N.B. This script may not work for all gschem schematics. I wrote sufficient code to work with my schematics not for all possible schematics.
The scripts pcb-matrix and sch-matrix replicate PCB and schematic
structures by copying an input file to an output file multiple times
incrementing the (x,y)
position of each copy. The copied
structures are arranged in a matrix as specified in a configuration
file.
N.B. These scripts may not work for all layouts. I wrote
sufficient code to copy the schematic and PCB elements for one of my
designs not for all possible designs. I am almost certain that
sch-matrix
will break for schematics with embedded
symbols.
For each symbol in the current directory,
create-np-symbols
creates a new symbol without the
embedded power connections and a new symbol with only the power
pins. The symbol without the power pins has filename with an
_np
suffix. The symbol containing only the power pins has
filename with an _pwr
suffix. Since many symbols contain
the same pinout for power pins the power pin symbol is a symlink to a
generic symbol.
N.B. This script only works for symbols with one power net and one ground. The routine that creates the power pin symbols has specifications for only two pins.