convert lga16.py to Python3, confirmed identical output
[hw/altusmetrum] / packages / 1206.fp
1 ##from:pcb
2 ##for:resistor
3 ##for:capacitor
4 ##for:led
5
6         # grab the input values and convert to 1/100 mil
7         # how much to grow the pads by for soldermask [1/100 mil]
8         # clearance from planes [1/100 mil]
9         # silk screen width  [1/100 mil]
10         # courtyard silk screen width  [1/100 mil]
11 # element_flags, description, pcb-name, value, mark_x, mark_y,
12 # text_x, text_y, text_direction, text_scale, text_flags
13 Element[0x00000000 "Standard SMT resistor, capacitor etc" "" "1206" 0 0 -3150 -3150 0 100 ""]
14 (
15   Attribute("openscad" "1206")
16
17 # Pad[x1, y1, x2, y2, thickness, clearance, mask, name , pad number, flags]
18         Pad[-5905 -1181
19                 -5905 1181
20                 5118 2000 5718 "1" "1" "square"]
21             Pad[5905 -1181
22                 5905 1181
23                 5118 2000 5718 "2" "2" "square"]
24         ElementLine[-2362 -3740 2362 -3740 800]
25             ElementLine[-2362 3740 2362 3740 800]
26 #
27 # This draws a 1 mil placement courtyard outline in silk.  It should probably
28 # not be included since you wont want to try and fab a 1 mil silk line.  Then
29 # again, it is most useful during parts placement.  It really is time for some
30 # additional non-fab layers...
31 #       ElementLine[eval(-1*V1/2) eval(-1*V2/2) eval(-1*V1/2) eval(   V2/2) CYW]
32 #       ElementLine[eval(-1*V1/2) eval(-1*V2/2) eval(   V1/2) eval(-1*V2/2) CYW]
33 #       ElementLine[eval(   V1/2) eval(   V2/2) eval(   V1/2) eval(-1*V2/2) CYW]
34 #       ElementLine[eval(   V1/2) eval(   V2/2) eval(-1*V1/2) eval(   V2/2) CYW]
35 )