Open general

2-layer 3rdPartyFab .kicad_dru is rejected by KiCad 10.0.3 ('graphic' type), so all its custom rules are ignored

John Lauer ·

The 2-layer 3rdPartyFab pack's .kicad_dru is rejected by KiCad 10.0.3, so every custom rule in it is silently ignored

Pack: adom-3rdpartyfab-2L as written by adom-aiflow rules use --profile 3rdPartyFab --layers 2 (adom-aiflow 0.2.116). KiCad: 10.0.3 (kicad-cli pcb drc).

The pack's last rule is

(rule "min-silk-thickness"
  (constraint text_thickness (min 0.06mm))
  (layer "*.SilkS")
  (condition "A.type == 'text' || A.type == 'graphic'"))

KiCad 10.0.3 does not accept 'graphic' as a type name in a condition. The whole .kicad_dru then fails to load, and DRC falls back to the board setup and net class values without saying so: the pack's 0.10 mm clearance, 0.085 mm track and 0.5 mm text height rules are not applied.

Repro: a board whose project carries this .kicad_dru plus a 0.5 mm silkscreen text and a 0.2 mm net class clearance: kicad-cli pcb drc reports text_height against the board setup minimum and clearance errors at the net class value. Change 'graphic' to 'Graphic' (KiCad's own spelling) and the same run reports neither: the file loads and its rules apply.

Suggested fix: use A.type == 'Graphic' in the pack (and check the other layer-count packs).

0 Replies

Log in to reply.