7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-22 05:55:03 +00:00
kicad/qa/data/pcbnew/component_classes_drc.kicad_dru
JamesJCode db072a524c Consolidation of Component Class implementation
- Moves functionality to FOOTPRINT class from BOARD_ITEM
- Renames DRC property from ComponentClass to Component_Class
- Adds DRC checks QA for A.Component_Class and a.hasComponentClass('x')
2024-10-24 20:11:35 +01:00

26 lines
703 B
Plaintext

(version 1)
(rule Rule1
(condition "A.intersectsArea('AREA1') && A.Type == 'Footprint'")
(constraint assertion "A.Component_Class == 'CLASS1'")
)
(rule Rule2
(condition "A.intersectsArea('AREA3') && A.Type == 'Footprint'")
(constraint assertion "A.Component_Class != 'CLASS1'")
)
(rule Rule3
(condition "A.intersectsArea('AREA2') && A.Type == 'Footprint'")
(constraint assertion "A.Component_Class == 'CLASS2,CLASS3'")
)
(rule Rule4
(condition "A.intersectsArea('AREA4') && A.Type == 'Footprint'")
(constraint assertion "A.hasComponentClass('CLASS3')")
)
(rule Rule5
(condition "A.intersectsArea('AREA4') && A.Type == 'Footprint'")
(constraint assertion "A.hasComponentClass('CLASS4')")
)