From b595991b1de63312a374ab0925dca6735768fc7d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 4 Apr 2019 18:20:24 +0300 Subject: [PATCH] - added a property for the Excellon obj to signal that object has no real tools diameter data --- camlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/camlib.py b/camlib.py index 32cc4864..1a68623c 100644 --- a/camlib.py +++ b/camlib.py @@ -3595,6 +3595,8 @@ class Excellon(Geometry): # this will serve as a default if the Excellon file has no info regarding of tool diameters (this info may be # in another file like for PCB WIzard ECAD software self.toolless_diam = 1.0 + # signal that the Excellon file has no tool diameter informations and the tools have bogus (random) diameter + self.diameterless = False # Excellon format self.excellon_format_upper_in = excellon_format_upper_in or self.defaults["excellon_format_upper_in"] @@ -3865,6 +3867,7 @@ class Excellon(Geometry): # then match.group(2) = None and float(None) will create the exception # the bellow construction is so each tool will have a slightly different diameter # starting with a default value, to allow Excellon editing after that + self.diameterless = True if self.excellon_units == 'MM': self.toolless_diam += (int(current_tool) - 1) / 10 else: