소스 검색

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

Marius Stanciu 5 년 전
부모
커밋
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
 
 - 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
 

+ 1 - 1
appTools/ToolRulesCheck.py

@@ -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