Skip to content

Commit

Permalink
[Internal Templates] Sync the gerber with the drill
Browse files Browse the repository at this point in the history
- Also de position for JLCPCB
- Now all chage with _KIBOT_DRILL_AUX_ORIGIN
  • Loading branch information
set-soft committed Feb 20, 2025
1 parent 9cb8a41 commit db9acf4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Global options:
- `work_layer`: to choose the temporal layer for internal operations (#713)
- Internal templates:
- `_KIBOT_DRILL_AUX_ORIGIN` option to control drill origin
- `_KIBOT_DRILL_AUX_ORIGIN` option to control drill, position and gerber origin
- Workaround for people using backslashes (i.e. Windows+WSL) (#719) (#607)
More general than in previous versions.
- Blender Export: option to avoid soldering heatsinks
Expand Down
3 changes: 2 additions & 1 deletion docs/source/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Added

- Internal templates:

- ``_KIBOT_DRILL_AUX_ORIGIN`` option to control drill origin
- ``_KIBOT_DRILL_AUX_ORIGIN`` option to control drill, position and
gerber origin

- Workaround for people using backslashes (i.e. Windows+WSL) (#719)
(#607) More general than in previous versions.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/configuration/imports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ The manufacturer templates (Elecrow, FusionPCB, JLCPCB, P-Ban and PCBWay) suppor
- **_KIBOT_PLOT_FOOTPRINT_REFS**: Include the footprint references in the gerbers (default: true)
- **_KIBOT_PLOT_FOOTPRINT_VALUES**: Include the footprint values in the gerbers (default: true, except for JLCPCB)
- **_KIBOT_COMPRESS_MOVE**: Move the generated files to the compressed archive (default: true)
- **_KIBOT_DRILL_AUX_ORIGIN**: Use the auxiliar origin as coordinates origin for drill files (default: false, except for FusionPCB)
- **_KIBOT_DRILL_AUX_ORIGIN**: Use the auxiliar origin as coordinates origin for drill, position and gerber files (default: false, except for FusionPCB)


The JLCPCB case is a little bit more complex and also supports:
Expand Down
1 change: 1 addition & 0 deletions kibot/resources/config_templates/Elecrow.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ outputs:
subtract_mask_from_silk: true
inner_extension_pattern: '.g%n'
edge_cut_extension: '.gml'
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
layers:
@_KIBOT_GERBER_LAYERS@
@_KIBOT_F_PASTE@
Expand Down
2 changes: 1 addition & 1 deletion kibot/resources/config_templates/FusionPCB.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ outputs:
line_width: 0.1
uppercase_extensions: true
subtract_mask_from_silk: false
use_aux_axis_as_origin: true
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
inner_extension_pattern: '.gl%N'
edge_cut_extension: '.gml'
layers:
Expand Down
2 changes: 2 additions & 0 deletions kibot/resources/config_templates/JLCPCB.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ outputs:
line_width: 0.1
subtract_mask_from_silk: true
inner_extension_pattern: '.g%n'
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
layers:
@_KIBOT_GERBER_LAYERS@
@_KIBOT_F_PASTE@
Expand Down Expand Up @@ -89,6 +90,7 @@ outputs:
units: millimeters
separate_files_for_front_and_back: false
only_smd: @_KIBOT_POS_ONLY_SMD@
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
columns:
- id: Ref
name: Designator
Expand Down
1 change: 1 addition & 0 deletions kibot/resources/config_templates/P-Ban.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ outputs:
line_width: 0.15
subtract_mask_from_silk: false
inner_extension_pattern: '.g%n'
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
custom_reports:
- output: '製造基準書.txt'
content: '部品面パターン : ${filename(F.Cu)}\r\n半田面パターン : ${filename(B.Cu)}\r\n内層パターン1 : ${filename(In1.Cu)}\r\n内層パターン2 : ${filename(In2.Cu)}\r\n内層パターン3 : ${filename(In3.Cu)}\r\n内層パターン4 : ${filename(In4.Cu)}\r\n内層パターン5 : ${filename(In5.Cu)}\r\n内層パターン6 : ${filename(In6.Cu)}\r\n部品面レジスト : ${filename(F.Mask)}\r\n半田面レジスト : ${filename(B.Mask)}\r\n部品面シルク : ${filename(F.SilkS)}\r\n半田面シルク : ${filename(B.SilkS)}\r\n基板外形 : ${filename(Edge.Cuts)}\r\n\nドリルデータ : ${basename}.drl\r\nドリルマップ : ${basename}-drl_map.gbr\r\nドリルリスト : ${basename}-drl.rpt\r\n'
Expand Down
1 change: 1 addition & 0 deletions kibot/resources/config_templates/PCBWay.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ outputs:
line_width: 0.1
subtract_mask_from_silk: false
inner_extension_pattern: '.gl%N'
use_aux_axis_as_origin: @_KIBOT_DRILL_AUX_ORIGIN@
layers:
@_KIBOT_GERBER_LAYERS@
@_KIBOT_F_PASTE@
Expand Down

0 comments on commit db9acf4

Please sign in to comment.