From 12a9ee8d7c44425c4ea50fd47db809ef183ff4f2 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Tue, 5 Apr 2022 20:08:55 +0300
Subject: [PATCH] Fix Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1mm according
 to KLC

---
 fab.kicad_sym | 84 ++++++++++++++-------------------------------------
 1 file changed, 23 insertions(+), 61 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 3fefa61..ee11256 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -1036,7 +1036,7 @@
       )
     )
   )
-  (symbol "Conn_PinHeader_1x02_P2.54mm_Horizontal_SMD" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
+  (symbol "Conn_PinHeader_1x02_P2.54mm_Horizontal_SMD" (pin_names hide) (in_bom yes) (on_board yes)
     (property "Reference" "J" (id 0) (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
@@ -1055,26 +1055,20 @@
     (property "ki_description" "Male UPDI 2 pin connector" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "fab:*Header_SMD_01x??_*" (id 6) (at 0 0 0)
+    (property "ki_fp_filters" "*PinHeader*1x02*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "Conn_PinHeader_1x02_P2.54mm_Horizontal_SMD_1_1"
-      (polyline
-        (pts
-          (xy 1.27 -2.54)
-          (xy 0.8636 -2.54)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
+    (symbol "Conn_PinHeader_1x02_P2.54mm_Horizontal_SMD_0_1"
+      (rectangle (start -1.27 -1.905) (end 1.27 -3.175)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (fill (type outline))
       )
-      (polyline
-        (pts
-          (xy 1.27 0)
-          (xy 0.8636 0)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
+      (rectangle (start -1.27 0.635) (end 1.27 -0.635)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (fill (type outline))
       )
+    )
+    (symbol "Conn_PinHeader_1x02_P2.54mm_Horizontal_SMD_1_1"
       (pin passive line (at 5.08 0 180) (length 3.81)
         (name "~" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -1085,7 +1079,7 @@
       )
     )
   )
-  (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1.4mm" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
+  (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1.4mm" (pin_names hide) (in_bom yes) (on_board yes)
     (property "Reference" "J" (id 0) (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
@@ -1104,32 +1098,16 @@
     (property "ki_description" "Male connector, single row" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "fab:*Header_SMD_01x??_*" (id 6) (at 0 0 0)
+    (property "ki_fp_filters" "*PinHeader*1x02*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1.4mm_1_1"
-      (polyline
-        (pts
-          (xy 1.27 -2.54)
-          (xy 0.8636 -2.54)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
-      )
-      (polyline
-        (pts
-          (xy 1.27 0)
-          (xy 0.8636 0)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
-      )
-      (rectangle (start 0.8636 -2.413) (end 0 -2.667)
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
+      (rectangle (start -1.27 -1.905) (end 1.27 -3.175)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
         (fill (type outline))
       )
-      (rectangle (start 0.8636 0.127) (end 0 -0.127)
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
+      (rectangle (start -1.27 0.635) (end 1.27 -0.635)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
         (fill (type outline))
       )
       (pin passive line (at 5.08 0 180) (length 3.81)
@@ -1142,7 +1120,7 @@
       )
     )
   )
-  (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1mm" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
+  (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1mm" (pin_names hide) (in_bom yes) (on_board yes)
     (property "Reference" "J" (id 0) (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
@@ -1161,32 +1139,16 @@
     (property "ki_description" "Male connector, single row" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "fab:*Header_SMD_01x??_*" (id 6) (at 0 0 0)
+    (property "ki_fp_filters" "*PinHeader*1x02*" (id 6) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinHeader_1x02_P2.54mm_Vertical_THT_D1mm_1_1"
-      (polyline
-        (pts
-          (xy 1.27 -2.54)
-          (xy 0.8636 -2.54)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
-      )
-      (polyline
-        (pts
-          (xy 1.27 0)
-          (xy 0.8636 0)
-        )
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
-        (fill (type none))
-      )
-      (rectangle (start 0.8636 -2.413) (end 0 -2.667)
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
+      (rectangle (start -1.27 -1.905) (end 1.27 -3.175)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
         (fill (type outline))
       )
-      (rectangle (start 0.8636 0.127) (end 0 -0.127)
-        (stroke (width 0.1524) (type default) (color 0 0 0 0))
+      (rectangle (start -1.27 0.635) (end 1.27 -0.635)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
         (fill (type outline))
       )
       (pin passive line (at 5.08 0 180) (length 3.81)
-- 
GitLab