yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.53k stars 201 forks source link

DRC custom rules #620

Closed geometric4402 closed 10 months ago

geometric4402 commented 10 months ago

Prerequisites

KiKit version

1.4.0

KiCAD version

7.0.8

Operating system

Windows 10

Description

Kikit runs into an error while using custom design rules, and there are comments starting with "#". I didn't find any notes here or on the other site (same as FAQ). Most readymade custom drc:s (e.g. for jlcpcb) include these comments. At this point I got it working by removing the comments from the custom drc. running kikit gives Error "An error occured: Excepted '(', got '#' No output files produced". image

Steps to Reproduce

Any command would produce this error if there are custom design rules, which contains comments, beginning with "#" image

one of the KiKit commands I tried:

kikit panelize^ --layout "hspace: 2mm; vspace: 2mm" ^ --cuts "type: mousebites" ^ --framing "type: railslr" ^ --tooling "type: 4hole" ^ "C:\Users\Aleksi\Documents\Kicadprojects\PSU\psu\psu.kicad_pcb" panel.kicad_pcb

yaqwsx commented 10 months ago

This was already addressed in c6511823912bbdfd3722d33ba211d251f1c1a8ae. It will be part of the upcoming release.