Root/modules/mic-ra-dip.fpd

Source at commit 5ed16708597ccf77aca40505ca75716a6518b49e created 7 years 4 months ago.
By Werner Almesberger, modules/: add measurementes to DIP-4/6-300mil; add to catalog and Makefile
1/* MACHINE-GENERATED ! */
2
3frame outline {
4    __0: vec @(-Dia/2, Height/2)
5    __2: vec .(Dia, py+factor*hole/2+2*w)
6    rect . __0 w
7    __1: vec @(Dia/2, -Height/2)
8    rect __0 . w
9}
10
11frame pins {
12    table
13        { n, dx }
14        { 1, -1 }
15        { 2, 1 }
16
17    __0: vec @(0mm, Height/2+py)
18    __1: vec .(dx*Pitch/2, 0mm)
19    __2: vec .(hole/2, hole/2)
20    __3: vec __1(-hole/2, -hole/2)
21    hole . __2
22    __4: vec __1(factor*hole/2, -factor*hole/2)
23    __5: vec __1(-factor*hole/2, factor*hole/2)
24    rpad "$n" . __4
25}
26
27package "MIC-RA-DIP-${Dia}x${Height}"
28unit auto
29
30table
31    { Dia, Height, Pitch, py }
32    { 9.7mm, 6.7mm, 2.54mm, 1.5mm }
33
34set w = 5mil
35
36set hole = 0.9mm
37
38set factor = 1.7
39
40frame outline @
41frame pins @
42measy outline.__1 >> outline.__0 -1mm
43measx outline.__0 >> outline.__1 -(Height+1mm)
44meas pins.__1 >> pins.__1 2mm
45measx pins.__3 -> pins.__2 -factor*hole/2
46

Archive Download this file

Branches:
master



interactive