Просмотр исходного кода

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

Marius Stanciu 5 лет назад
Родитель
Сommit
86e870ec71
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      appTools/ToolRulesCheck.py

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
 23.10.2020
 23.10.2020
 
 
 - updated Copper Thieving Tool to work with the updated program
 - 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
 22.10.2020
 
 

+ 1 - 1
appTools/ToolRulesCheck.py

@@ -357,7 +357,7 @@ class RulesCheck(AppTool):
 
 
             name = elem['name']
             name = elem['name']
             for tool in elem['tools']:
             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):
                 if tool_dia < float(size):
                     dia_list.append(tool_dia)
                     dia_list.append(tool_dia)
             obj_violations['name'] = name
             obj_violations['name'] = name