phonejack.fpd 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* MACHINE-GENERATED ! */
  2. frame pad {
  3. __0: vec @(roundx/2, roundy/2)
  4. __1: vec @(-roundx/2, -roundy/2)
  5. hole . __0
  6. __2: vec @(ratio*roundx/2, -ratio*roundy/2)
  7. __3: vec @(-ratio*roundx/2, ratio*roundy/2)
  8. rpad "$n" . __2 bare
  9. }
  10. frame pads {
  11. table
  12. { n, px, py }
  13. { 1, -1.2mm, 0.85mm }
  14. { 2, -9.3mm, -1.15mm }
  15. { 3, -7.4mm, 0.85mm }
  16. { 4, -12.9mm, 0.85mm }
  17. { 5, -3.65mm, -1.15mm }
  18. __0: vec @(px, py)
  19. frame pad .
  20. }
  21. frame outline {
  22. __0: vec @(0mm, rty)
  23. __1: vec @(-rx, -rby)
  24. rect . __0 w
  25. __2: vec @(fx, 0mm)
  26. __3: vec .(0mm, -fy/2)
  27. __4: vec .(-fx, 0mm)
  28. line __3 . w
  29. __5: vec __2(0mm, fy/2)
  30. line . __3 w
  31. __6: vec .(-fx, 0mm)
  32. line . __5 w
  33. __7: vec @(-3.65mm, -1.15mm)
  34. __8: vec @(-7.4mm, 0.85mm)
  35. __9: vec @(-9.3mm, -1.15mm)
  36. }
  37. package "phonejack-${size}-${N}"
  38. unit mm
  39. table
  40. { size, N, roundx, roundy, ratio, rty, rby, fx, fy, rx, diff }
  41. { 3.5, 5, 0.6mm, 2mm, 1.8, 4.9mm, 8.2mm-rty, 4mm, 6mm, 14mm, 0.85mm }
  42. set w = 5mil
  43. frame pads @
  44. frame outline @
  45. measx pad.__1 -> pad.__0 -roundy/2
  46. measx pad.__3 -> pad.__2 0.5mm
  47. measy pad.__1 -> pad.__0 roundx
  48. measy pad.__2 -> pad.__3 ratio*roundx+1mm
  49. measy outline.__1 >> outline.__0 0.5mm
  50. measx outline.__1 >> outline.__0 rby+rty+3mm
  51. meas outline.__6 >> outline.__5 0.5mm
  52. meas outline.__3 >> outline.__5 -0.5mm
  53. measy outline.__2 >> outline.__0 fx+0.3mm
  54. measy outline.__2 >> pads.__0 fx+1.2mm+1mm
  55. measy outline.__7 >> outline.__2 1mm
  56. measx outline.__0 << pads.__0 rty
  57. measx pads.__0 >> outline.__0 rty+1.8mm
  58. measx outline.__7 >> outline.__0 rty+2.5mm
  59. measx outline.__8 >> outline.__0 rty+1mm
  60. measx outline.__0 >> outline.__9 -2.2mm