From 40e09726226ae08b94ad4efea34dad3e30ab6291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 23 Mar 2022 18:09:56 +0100 Subject: [PATCH] brd: add pullback DRC rule --- pd_blocker.lht | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/pd_blocker.lht b/pd_blocker.lht index 8952a6a..9a0a03f 100644 --- a/pd_blocker.lht +++ b/pd_blocker.lht @@ -13984,6 +13984,7 @@ ha:pcb-rnd-board-v8 { min_drill = 0.2 mm min_copper_thickness = 3.5 mil min_copper_clearance = 3.5 mil + pullback_routed_minspacing = 0.2 mm } min_wid = 0.15240000 mm bloat = 0.15240000 mm @@ -13997,10 +13998,10 @@ ha:pcb-rnd-board-v8 { line_refraction = 1 buffer_number = 0 ha:view { - flip_x = 1 + flip_x = 0 flip_y = 0 } - show_solder_side = 1 + show_solder_side = 0 clear_polypoly = false } ha:rc { @@ -14020,6 +14021,30 @@ ha:pcb-rnd-board-v8 { } } } + ha:append { + ha:plugins { + ha:drc_query { + li:rules { + ha:pullback_routed { + type = pullback + title = copper close to outline + desc = distance between copper and routed outline is at least pullback_routed_minspacing value in definitions + query = {rule pullback_routed +let OUTLINE ((@.layer.type == BOUNDARY) && (@.layer.purpose ~ "route")) +let TRACE (@.layer.type == COPPER) +assert (($pullback_routed_minspacing > 0) && overlap(OUTLINE, TRACE, $pullback_routed_minspacing)) thus violation(DRCGRP1, OUTLINE, DRCGRP2, TRACE, DRCTEXT, "copper closer to routed outline than", DRCEXPECT, $pullback_routed_minspacing) +} + } + } + li:definitions { + ha:pullback_routed_minspacing { + type = coord + desc = minimum distance between copper and routed outline + } + } + } + } + } } ha:pixmaps { }