From 51190d57124252ae9acc11fb7f02511b182cfa08 Mon Sep 17 00:00:00 2001 From: Alan Ford Date: Wed, 21 Feb 2018 15:26:28 -0500 Subject: [PATCH 1/3] added check and abort when no test points are specified --- GenFixture.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GenFixture.py b/GenFixture.py index 670580c..6a59cbd 100755 --- a/GenFixture.py +++ b/GenFixture.py @@ -172,6 +172,13 @@ def Generate(self, path): # Get test points self.GetTestPoints () + # Test for failure to find test points + if len(self.test_points) == 0: + print "WARNING, ABORTING: No test points found!" + print "Verify that the pcbnew file has test points specified" + print "or use the --flayer option to force test points" + return + # Plot DXF self.PlotDXF (path) From 13fc372e1202bcbc2365e1142c206bf3fdd55e24 Mon Sep 17 00:00:00 2001 From: Alan Ford Date: Wed, 21 Feb 2018 15:48:58 -0500 Subject: [PATCH 2/3] altered call to openfixture.scad to properly pass the pcb support border size --- GenFixture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GenFixture.py b/GenFixture.py index 6a59cbd..40c5b7c 100755 --- a/GenFixture.py +++ b/GenFixture.py @@ -213,7 +213,7 @@ def Generate(self, path): if self.pivot_d != None: args += " -D\'pivot_d=%.02f\'" % float (self.pivot_d) if self.border != None: - args += " -D\'border=%.02f\'" % float (self.border) + args += " -D\'pcb_support_border=%.02f\'" % float (self.border) # Create output file name dxfout = path + "/" + self.prj_name + "-fixture.dxf" From fc555eb2c1c8f89850ece716cb2d591cc38bcbbd Mon Sep 17 00:00:00 2001 From: Alan Ford Date: Fri, 2 Mar 2018 18:32:08 -0500 Subject: [PATCH 3/3] added back cutout to the head top plate to resolve top-back interferences --- openfixture.scad | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openfixture.scad b/openfixture.scad index a5d53ec..6b17466 100644 --- a/openfixture.scad +++ b/openfixture.scad @@ -401,6 +401,10 @@ module head_top () // Common base head_base_common (); + + // Remove back cutout + translate ([2 * mat_th, head_y - mat_th, 0]) + cube ([head_x - 4 * mat_th, mat_th, mat_th]); // Remove holes for hex nuts translate ([hole_offset, hole_offset, 0])