diff --git a/CHANGELOG.md b/CHANGELOG.md index e2b829db..c96d732e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta ================================================= +4.04.2021 + +- fixed drill file import from FreePCB + 1.04.2021 - fixed bug in the Drilling Tool when there are tools without drill points diff --git a/appParsers/ParseExcellon.py b/appParsers/ParseExcellon.py index 7f52532a..2da282ee 100644 --- a/appParsers/ParseExcellon.py +++ b/appParsers/ParseExcellon.py @@ -327,17 +327,20 @@ class Excellon(Geometry): self.tools[name_tool] = {} if line_units == 'MILS': spec = { - 'tooldia': (float(match.group(2)) / 1000) + 'tooldia': (float(match.group(2)) / 1000), + 'solid_geometry': [] } self.tools[name_tool]['tooldia'] = (float(match.group(2)) / 1000) self.app.log.debug("Tool definition: %d %s" % (name_tool, spec)) else: spec = { - 'tooldia': float(match.group(2)) + 'tooldia': float(match.group(2)), + 'solid_geometry': [] } self.tools[name_tool]['tooldia'] = float(match.group(2)) self.app.log.debug("Tool definition: %d %s" % (name_tool, spec)) - spec['solid_geometry'] = [] + + self.tools[name_tool]['solid_geometry'] = [] continue # search for Altium Excellon Format / Sprint Layout who is included as a comment match = self.altium_format.search(eline) @@ -881,6 +884,7 @@ class Excellon(Geometry): self.app.log.warning("UNITS found inline - Value before conversion: %s" % self.units) self.convert_units(self.units) self.app.log.warning("UNITS found inline - Value after conversion: %s" % self.units) + if self.units == 'MM': self.app.log.warning("Excellon format preset is: %s:%s" % (str(self.excellon_format_upper_mm), str(self.excellon_format_lower_mm)))