Root/modules/spacer.fpd

Source at commit d37268a6ba7dd08f54960a03ca755dc943e3636c created 7 years 1 month ago.
By Werner Almesberger, modules/: add PAD_S_120x120; correct classification of PAD_S_150x150
1/* MACHINE-GENERATED ! */
2
3frame copper {
4    loop if = 1, copper
5
6    __2: vec @(disc/2, -disc/2)
7    __3: vec @(-disc/2, disc/2)
8    rpad "1" . __2 bare
9}
10
11package "SPACER-$nominal-$disc-$keepout$type"
12unit auto
13
14table
15    { nominal }
16    { 3mm }
17    { 4mm }
18
19table
20    { type, copper }
21    { "", 1 }
22    { "-BARE", 0 }
23
24set hole = nominal+0.2mm
25
26table
27    { disc }
28    { 7mm }
29    { 8mm }
30    { 9mm }
31
32set area = 10mm
33
34table
35    { keepout }
36    { 9.5mm }
37    { 10mm }
38
39set w = 5mil
40
41__0: vec @(hole/2, hole/2)
42__1: vec @(-hole/2, -hole/2)
43hole . __0
44__4: vec @(0mm, -keepout/2)
45__3: vec @(0mm, keepout/2)
46circ @ . w
47frame copper @
48measy __1 >> __0 keepout/2+1mm
49measy copper.__2 >> copper.__3 disc+keepout/2+0.5mm
50meas __4 >> __3 keepout+1mm
51

Archive Download this file

Branches:
master



interactive