Index: drc_query/index.html =================================================================== --- drc_query/index.html (revision 30149) +++ drc_query/index.html (revision 30150) @@ -38,7 +38,7 @@ title = hole too small desc = padstack hole diameter is too small disable = 0 - query = {@.hole < 0.2mm} + query = {(@.hole > 0) && (@.hole < 0.2mm)} } } } @@ -104,6 +104,10 @@ can be checked separately from any other object and the outcome of a check depends only on properties of the single padstack object and constants. There is only one iterator used, @, which iterates on all objects of the board. +

+Note: the left-side check of && for hole diameter greater than zero +is needed because of the pcb-rnd data model: hole diameter zero means no hole +(e.g. smd pads) - no warning should be issued for that.

Rule scripts