Index: drc_query.conf =================================================================== --- drc_query.conf (revision 30855) +++ drc_query.conf (revision 30856) @@ -119,6 +119,19 @@ query = { poly_num_islands(@) > 1 } } + ha:ko_named { + type = courtyard + title = Courtyard collision + desc = Courtyard objects overlap - this usually indicates 3d conflict between parts + query = { +rule courtyard +let A (@.layer.purpose ~ "^ko.") thus @ +let B A +assert (A != B) && (A.layer.purpose == B.layer.purpose) && (overlap(A, B)) \\ + thus violation(DRCGRP1, A, DRCGRP2, B) +} + } + } } }