brd: add pullback DRC rule

This commit is contained in:
King Kévin 2022-03-23 18:09:56 +01:00
parent 2f3f9abb59
commit 40e0972622
1 changed files with 27 additions and 2 deletions

View File

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