From 3d7aa94a0758114bd44e82b7502c1119b4fe89a0 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sat, 9 Jan 2021 22:28:16 +0200
Subject: [PATCH] Add 3D shape path based on a variable to be set in KiCAD

---
 fab.pretty/Crystal_NX5032GA-20.kicad_mod | 26 ++++++++++++------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/fab.pretty/Crystal_NX5032GA-20.kicad_mod b/fab.pretty/Crystal_NX5032GA-20.kicad_mod
index 25c3b58..39375a0 100644
--- a/fab.pretty/Crystal_NX5032GA-20.kicad_mod
+++ b/fab.pretty/Crystal_NX5032GA-20.kicad_mod
@@ -1,4 +1,4 @@
-(module Crystal_NX5032GA-20 (layer F.Cu) (tedit 5FF9B3ED)
+(module Crystal_NX5032GA-20 (layer F.Cu) (tedit 5FFA11B7)
   (descr "20MHz ±50ppm Crystal 8pF 70 Ohms 2-SMD, No Lead")
   (tags "SMD SMT crystal hand-soldering")
   (attr smd)
@@ -8,24 +8,24 @@
   (fp_text value Crystal_NX5032GA-20 (at 0 2.95) (layer F.Fab)
     (effects (font (size 1 1) (thickness 0.15)))
   )
-  (fp_line (start 3.3 -2) (end -3.3 -2) (layer F.CrtYd) (width 0.05))
-  (fp_line (start 3.3 2) (end 3.3 -2) (layer F.CrtYd) (width 0.05))
-  (fp_line (start -3.3 2) (end 3.3 2) (layer F.CrtYd) (width 0.05))
-  (fp_line (start -3.3 -2) (end -3.3 2) (layer F.CrtYd) (width 0.05))
-  (fp_line (start -3.225 1.95) (end 2.5 1.95) (layer F.SilkS) (width 0.12))
-  (fp_line (start -3.225 -1.95) (end -3.225 1.95) (layer F.SilkS) (width 0.12))
-  (fp_line (start 2.525 -1.95) (end -3.225 -1.95) (layer F.SilkS) (width 0.12))
-  (fp_line (start -2.5 0.6) (end -1.5 1.6) (layer F.Fab) (width 0.1))
-  (fp_line (start -2.5 1.6) (end -2.5 -1.6) (layer F.Fab) (width 0.1))
-  (fp_line (start 2.5 1.6) (end -2.5 1.6) (layer F.Fab) (width 0.1))
-  (fp_line (start 2.5 -1.6) (end 2.5 1.6) (layer F.Fab) (width 0.1))
   (fp_line (start -2.5 -1.6) (end 2.5 -1.6) (layer F.Fab) (width 0.1))
+  (fp_line (start 2.5 -1.6) (end 2.5 1.6) (layer F.Fab) (width 0.1))
+  (fp_line (start 2.5 1.6) (end -2.5 1.6) (layer F.Fab) (width 0.1))
+  (fp_line (start -2.5 1.6) (end -2.5 -1.6) (layer F.Fab) (width 0.1))
+  (fp_line (start -2.5 0.6) (end -1.5 1.6) (layer F.Fab) (width 0.1))
+  (fp_line (start 2.525 -1.95) (end -3.225 -1.95) (layer F.SilkS) (width 0.12))
+  (fp_line (start -3.225 -1.95) (end -3.225 1.95) (layer F.SilkS) (width 0.12))
+  (fp_line (start -3.225 1.95) (end 2.5 1.95) (layer F.SilkS) (width 0.12))
+  (fp_line (start -3.3 -2) (end -3.3 2) (layer F.CrtYd) (width 0.05))
+  (fp_line (start -3.3 2) (end 3.3 2) (layer F.CrtYd) (width 0.05))
+  (fp_line (start 3.3 2) (end 3.3 -2) (layer F.CrtYd) (width 0.05))
+  (fp_line (start 3.3 -2) (end -3.3 -2) (layer F.CrtYd) (width 0.05))
   (fp_text user %R (at 0 0) (layer F.Fab)
     (effects (font (size 1 1) (thickness 0.15)))
   )
   (pad 1 smd rect (at -2 0) (size 2 2.4) (layers F.Cu F.Paste F.Mask))
   (pad 2 smd rect (at 2 0) (size 2 2.4) (layers F.Cu F.Paste F.Mask))
-  (model /home/kris/Electronics/KiCAD/Libraries/fab/fab.3dshapes/Crystal_NDK_NX5032GA-20.step
+  (model ${FAB}/fab.3dshapes/Crystal_NDK_NX5032GA-20.step
     (at (xyz 0 0 0))
     (scale (xyz 1 1 1))
     (rotate (xyz 0 0 0))
-- 
GitLab