Root/modules/xlr-socket.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 outline {
4    __0: vec @(-rightx, -(reary-edgey))
5    __1: vec @(leftx, edgey)
6    rect __0 . w
7    __2: vec @(panelcutoutx/2, edgey+fronty)
8    __4: vec .(0mm, -fronty)
9    line __2 . w
10    __3: vec @(-panelcutoutx/2, edgey+fronty)
11    line __2 . w
12    __5: vec .(0mm, -fronty)
13    line __3 . w
14    __6: vec @(screwx/2, edgey)
15    __7: vec @(-screwx/2, edgey)
16}
17
18package "XLR-PANEL-HORIZ/PCB-SOCKET"
19unit mm
20
21set x2 = 3.81mm
22
23set x1 = 3.81mm
24
25set y2 = 0.635mm
26
27set y3 = 4.45mm
28
29set edgey = 12.7mm
30
31set r1 = 1.6mm
32
33set r3 = 1.2mm
34
35set factor = 1.6
36
37set fronty = 2.7mm
38
39set reary = 19.5mm
40
41set leftx = 12.8mm
42
43set rightx = 12.5mm
44
45set w = 5mil
46
47set panelcutoutx = 22mm
48
49set screwx = 19.8mm
50
51__0: vec @(x2, -y2)
52__1: vec @(0mm, -y3)
53__2: vec @(-x1, 0mm)
54__3: vec @(0mm, edgey)
55__4: vec .(-x1, -x1)
56__5: vec __3(x2, -8.89mm)
57__6: vec __1(r3/2, r3/2)
58__7: vec __1(-r3/2, -r3/2)
59hole . __6
60__8: vec __0(r1/2, r1/2)
61__9: vec __0(-r1/2, -r1/2)
62hole . __8
63__10: vec __2(r1/2, r1/2)
64__11: vec __2(-r1/2, -r1/2)
65hole . __10
66__14: vec __4(r1/2, r1/2)
67__15: vec __4(-r1/2, -r1/2)
68hole . __14
69__12: vec __5(r1/2, r1/2)
70__13: vec __5(-r1/2, -r1/2)
71hole . __12
72__16: vec __0(factor*r1/2, -factor*r1/2)
73__17: vec __0(-factor*r1/2, factor*r1/2)
74rpad "2" . __16 bare
75__18: vec __2(factor*r1/2, -factor*r1/2)
76__19: vec __2(-factor*r1/2, factor*r1/2)
77rpad "1" . __18 bare
78__20: vec __1(factor*r3/2, -factor*r3/2)
79__21: vec __1(-factor*r3/2, factor*r3/2)
80rpad "3" . __20 bare
81__22: vec __3(0mm, fronty)
82frame outline @
83measy __9 >> __8 -(factor+2)*r1/2
84measy __7 >> __6 -(factor+2.5)*r3/2
85measy __0 >> __2 2*x1+(factor+1)*r1/2
86measy __1 >> __2 x1+(factor+2)*r1/2
87measy __2 >> __3 (factor+2)*r1/2
88measy __4 >> __3
89measx __4 >> __3 x1+0.5mm
90measx __3 >> __5 0.5mm
91measy __5 >> __3 -r1
92meas __3 >> __22 (factor+2)*r1/2+x1
93measy outline.__0 >> __3 0.8mm
94measx outline.__0 >> __22 reary/2
95meas outline.__3 >> outline.__2 0.8mm
96meas __3 >> outline.__1 -reary/2
97meas outline.__7 >> outline.__6 fronty/2
98measx outline.__0 >> outline.__1 0.6mm
99

Archive Download this file

Branches:
master



interactive