- updated Rules Check Tool - Hole Size rule to work with the new data structure for the Excellon objects

This commit is contained in:
Marius Stanciu 2020-10-23 02:32:06 +03:00 committed by Marius
parent a39f3f7cac
commit 86e870ec71
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
23.10.2020
- updated Copper Thieving Tool to work with the updated program
- updated Rules Check Tool - Hole Size rule to work with the new data structure for the Excellon objects
22.10.2020

View File

@ -357,7 +357,7 @@ class RulesCheck(AppTool):
name = elem['name']
for tool in elem['tools']:
tool_dia = float('%.*f' % (4, float(elem['tools'][tool]['C'])))
tool_dia = float('%.*f' % (4, float(elem['tools'][tool]['tooldia'])))
if tool_dia < float(size):
dia_list.append(tool_dia)
obj_violations['name'] = name