From 66bc7c0a23e7d9246125e6d39da917565cff3212 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sun, 3 Apr 2022 16:19:32 +0300
Subject: [PATCH] Fix unpolarized 1206 capacitor according to KLC

---
 fab.kicad_sym | 92 ++++++++++++++++++++++++++++++---------------------
 1 file changed, 54 insertions(+), 38 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 6ee3b11..37866ef 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -422,14 +422,14 @@
       )
     )
   )
-  (symbol "C" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
+  (symbol "CP_Elec_10x10mm" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
     (property "Reference" "C" (id 0) (at 0.635 2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Value" "C" (id 1) (at 0.635 -2.54 0)
+    (property "Value" "CP_Elec_10x10mm" (id 1) (at 0.635 -2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Footprint" "fab:C_1206" (id 2) (at 0.9652 -3.81 0)
+    (property "Footprint" "fab:CP_Elec_10x10mm" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (property "Datasheet" "" (id 3) (at 0 0 0)
@@ -438,31 +438,39 @@
     (property "ki_keywords" "cap capacitor" (id 4) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_description" "Unpolarized capacitor" (id 5) (at 0 0 0)
+    (property "ki_description" "Polarized capacitor" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "C_*" (id 6) (at 0 0 0)
+    (property "ki_fp_filters" "CP_*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "C_0_1"
+    (symbol "CP_Elec_10x10mm_0_1"
+      (rectangle (start -2.286 0.508) (end 2.286 1.016)
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
       (polyline
         (pts
-          (xy -2.032 -0.762)
-          (xy 2.032 -0.762)
+          (xy -1.778 2.286)
+          (xy -0.762 2.286)
         )
-        (stroke (width 0.508) (type default) (color 0 0 0 0))
+        (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy -2.032 0.762)
-          (xy 2.032 0.762)
+          (xy -1.27 2.794)
+          (xy -1.27 1.778)
         )
-        (stroke (width 0.508) (type default) (color 0 0 0 0))
+        (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
+      (rectangle (start 2.286 -0.508) (end -2.286 -1.016)
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type outline))
+      )
     )
-    (symbol "C_1_1"
+    (symbol "CP_Elec_10x10mm_1_1"
       (pin passive line (at 0 3.81 270) (length 2.794)
         (name "~" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -473,14 +481,14 @@
       )
     )
   )
-  (symbol "CP_Elec_10x10mm" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
+  (symbol "CP_Elec_P3.5mm_D8mm" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
     (property "Reference" "C" (id 0) (at 0.635 2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Value" "CP_Elec_10x10mm" (id 1) (at 0.635 -2.54 0)
+    (property "Value" "CP_Elec_P3.5mm_D8mm" (id 1) (at 0.635 -2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Footprint" "fab:CP_Elec_10x10mm" (id 2) (at 0 0 0)
+    (property "Footprint" "fab:CP_Elec_P3.5_D8mm" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (property "Datasheet" "" (id 3) (at 0 0 0)
@@ -495,7 +503,7 @@
     (property "ki_fp_filters" "CP_*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "CP_Elec_10x10mm_0_1"
+    (symbol "CP_Elec_P3.5mm_D8mm_0_1"
       (rectangle (start -2.286 0.508) (end 2.286 1.016)
         (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
@@ -521,7 +529,7 @@
         (fill (type outline))
       )
     )
-    (symbol "CP_Elec_10x10mm_1_1"
+    (symbol "CP_Elec_P3.5mm_D8mm_1_1"
       (pin passive line (at 0 3.81 270) (length 2.794)
         (name "~" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -532,60 +540,68 @@
       )
     )
   )
-  (symbol "CP_Elec_P3.5mm_D8mm" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
+  (symbol "C_1206" (pin_numbers hide) (in_bom yes) (on_board yes)
     (property "Reference" "C" (id 0) (at 0.635 2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Value" "CP_Elec_P3.5mm_D8mm" (id 1) (at 0.635 -2.54 0)
+    (property "Value" "C_1206" (id 1) (at 0.635 -2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Footprint" "fab:CP_Elec_P3.5_D8mm" (id 2) (at 0 0 0)
+    (property "Footprint" "fab:C_1206" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "Datasheet" "" (id 3) (at 0 0 0)
+    (property "Datasheet" "https://www.yageo.com/upload/media/product/productsearch/datasheet/mlcc/UPY-GP_NP0_16V-to-50V_18.pdf" (id 3) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_keywords" "cap capacitor" (id 4) (at 0 0 0)
+    (property "ki_keywords" "cap capacitor unpolarized 1206 C" (id 4) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_description" "Polarized capacitor" (id 5) (at 0 0 0)
+    (property "ki_description" "Unpolarized capacitor, SMD, 1206" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "CP_*" (id 6) (at 0 0 0)
+    (property "ki_fp_filters" "*C*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "CP_Elec_P3.5mm_D8mm_0_1"
-      (rectangle (start -2.286 0.508) (end 2.286 1.016)
-        (stroke (width 0) (type default) (color 0 0 0 0))
+    (symbol "C_1206_0_1"
+      (polyline
+        (pts
+          (xy -2.032 -0.762)
+          (xy 2.032 -0.762)
+        )
+        (stroke (width 0.508) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy -1.778 2.286)
-          (xy -0.762 2.286)
+          (xy -2.032 0.762)
+          (xy 2.032 0.762)
         )
-        (stroke (width 0) (type default) (color 0 0 0 0))
+        (stroke (width 0.508) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy -1.27 2.794)
-          (xy -1.27 1.778)
+          (xy 0 -0.635)
+          (xy 0 -2.54)
         )
         (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
-      (rectangle (start 2.286 -0.508) (end -2.286 -1.016)
+      (polyline
+        (pts
+          (xy 0 0.635)
+          (xy 0 2.54)
+        )
         (stroke (width 0) (type default) (color 0 0 0 0))
-        (fill (type outline))
+        (fill (type none))
       )
     )
-    (symbol "CP_Elec_P3.5mm_D8mm_1_1"
-      (pin passive line (at 0 3.81 270) (length 2.794)
+    (symbol "C_1206_1_1"
+      (pin passive line (at 0 5.08 270) (length 2.54)
         (name "~" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
       )
-      (pin passive line (at 0 -3.81 90) (length 2.794)
+      (pin passive line (at 0 -5.08 90) (length 2.54)
         (name "~" (effects (font (size 1.27 1.27))))
         (number "2" (effects (font (size 1.27 1.27))))
       )
-- 
GitLab