(module enc_3d (layer F.Cu) (tedit 5F78D73C)
  (descr "Alps rotary encoder, EC12E... with switch, vertical shaft, http://www.alps.com/prod/info/E/HTML/Encoder/Incremental/EC12E/EC12E1240405.html & http://cdn-reichelt.de/documents/datenblatt/F100/402097STEC12E08.PDF")
  (tags "rotary encoder")
  (fp_text reference SW1 (at 2.8 -4.7) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value Rotary_Encoder_Switch (at 7.5 10.4) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_line (start 7 2.5) (end 8 2.5) (layer F.SilkS) (width 0.12))
  (fp_line (start 7.5 2) (end 7.5 3) (layer F.SilkS) (width 0.12))
  (fp_line (start 14.2 6.2) (end 14.2 8.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 14.2 1.2) (end 14.2 3.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 14.2 -3.8) (end 14.2 -1.2) (layer F.SilkS) (width 0.12))
  (fp_line (start 4.5 2.5) (end 10.5 2.5) (layer F.Fab) (width 0.12))
  (fp_line (start 7.5 -0.5) (end 7.5 5.5) (layer F.Fab) (width 0.12))
  (fp_line (start 0.3 -1.6) (end 0 -1.3) (layer F.SilkS) (width 0.12))
  (fp_line (start -0.3 -1.6) (end 0.3 -1.6) (layer F.SilkS) (width 0.12))
  (fp_line (start 0 -1.3) (end -0.3 -1.6) (layer F.SilkS) (width 0.12))
  (fp_line (start 0.8 -3.8) (end 0.8 -1.3) (layer F.SilkS) (width 0.12))
  (fp_line (start 5.6 -3.8) (end 0.8 -3.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 0.8 8.8) (end 0.8 6) (layer F.SilkS) (width 0.12))
  (fp_line (start 5.7 8.8) (end 0.8 8.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 14.2 8.8) (end 9.3 8.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 9.3 -3.8) (end 14.2 -3.8) (layer F.SilkS) (width 0.12))
  (fp_line (start 0.9 -2.6) (end 1.9 -3.7) (layer F.Fab) (width 0.12))
  (fp_line (start 0.9 8.7) (end 0.9 -2.6) (layer F.Fab) (width 0.12))
  (fp_line (start 14.1 8.7) (end 0.9 8.7) (layer F.Fab) (width 0.12))
  (fp_line (start 14.1 -3.7) (end 14.1 8.7) (layer F.Fab) (width 0.12))
  (fp_line (start 1.9 -3.7) (end 14.1 -3.7) (layer F.Fab) (width 0.12))
  (fp_line (start -1.5 -4.85) (end 16 -4.85) (layer F.CrtYd) (width 0.05))
  (fp_line (start -1.5 -4.85) (end -1.5 9.85) (layer F.CrtYd) (width 0.05))
  (fp_line (start 16 9.85) (end 16 -4.85) (layer F.CrtYd) (width 0.05))
  (fp_line (start 16 9.85) (end -1.5 9.85) (layer F.CrtYd) (width 0.05))
  (fp_circle (center 7.5 2.5) (end 10.5 2.5) (layer F.SilkS) (width 0.12))
  (fp_circle (center 7.5 2.5) (end 10.5 2.5) (layer F.Fab) (width 0.12))
  (fp_text user %R (at 11.5 6.6) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (pad A thru_hole rect (at 0 0) (size 2 2) (drill 1) (layers *.Cu *.Mask))
  (pad C thru_hole circle (at 0 2.5) (size 2 2) (drill 1) (layers *.Cu *.Mask))
  (pad B thru_hole circle (at 0 5) (size 2 2) (drill 1) (layers *.Cu *.Mask))
  (pad MP thru_hole rect (at 7.5 8.1) (size 3 2.5) (drill oval 2.5 2) (layers *.Cu *.Mask))
  (pad S1 thru_hole circle (at 14.5 0) (size 2 2) (drill 1) (layers *.Cu *.Mask))
  (pad S2 thru_hole circle (at 14.5 5) (size 2 2) (drill 1) (layers *.Cu *.Mask))
  (model ${KISYS3DMOD}/Rotary_Encoder.3dshapes/RotaryEncoder_Alps_EC12E-Switch_Vertical_H20mm.wrl
    (at (xyz 0 0 0))
    (scale (xyz 1 1 1))
    (rotate (xyz 0 0 0))
  )
  (model ${KIPRJMOD}/kicadstuff/EC12E-200.STEP
    (offset (xyz 7.5 -2.5 2.4))
    (scale (xyz 1 1 1))
    (rotate (xyz 0 0 90))
  )
)
