[Templates][JLCPCB] Added DNF filter for the position

Used to exclude KiKit panel components

See #516
This commit is contained in:
Salvador E. Tropea 2023-11-16 12:35:17 -03:00
parent 0b6a1cf115
commit cd447710ae
3 changed files with 15 additions and 0 deletions

View File

@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Internal templates:
- 3DRender_top, 3DRender_top_straight, 3DRender_bottom and
3DRender_bottom_straight: to generate simple and quick 3D renders.
- _KIBOT_POS_DNF_FILTER option to JLCPCB. It now excludes components added
by KiKit to create panels and can be customized.
- Filters:
- New `_rot_footprint_jlcpcb` internal filter to fix the JLCPCB bottom
rotations.

View File

@ -329,6 +329,8 @@ The JLCPCB case is a little bit more complex and also supports:
- **_KIBOT_POS_ENABLED**: Generate position files (default: true)
- **_KIBOT_BOM_ENABLED**: Generate BoM (default: true)
- **_KIBOT_POS_ONLY_SMD**: Use only SMD components for the position files (default: true)
- **_KIBOT_POS_DNF_FILTER**: Filter used to exclude components from the position file (default: _remove_extra). It currently
excludes components used by KiKit to create panels.
MacroFab_XYRS:

View File

@ -12,6 +12,15 @@ filters:
- column: _field_lcsc_part
regex: '^C\d+'
# Used to remove extra stuff added by KiKit for the panel
# If you need to keep them just specify a different filter matching only the thing you want
- name: _remove_extra
comment: 'Remove KiKit auxiliary stuff'
type: generic
exclude_any:
- column: References
regex: "^KiKit_"
groups:
- name: _JLCPCB_fab@_KIBOT_IMPORT_ID@
outputs:
@ -73,6 +82,7 @@ outputs:
run_by_default: @_KIBOT_POS_ENABLED@
options:
pre_transform: @_KIBOT_POS_PRE_TRANSFORM@
dnf_filter: @_KIBOT_POS_DNF_FILTER@
output: '%f_cpl_jlc.%x'
format: CSV
units: millimeters
@ -141,6 +151,7 @@ definitions:
_KIBOT_MANF_DIR: '@_KIBOT_IMPORT_DIR@'
_KIBOT_MANF_DIR_COMP: '@_KIBOT_IMPORT_DIR@'
_KIBOT_POS_PRE_TRANSFORM: _rot_footprint_jlcpcb
_KIBOT_POS_DNF_FILTER: _remove_extra
_KIBOT_POS_ENABLED: true
_KIBOT_BOM_ENABLED: true
_KIBOT_GERBER_LAYERS: |