Skip to content

Commit

Permalink
[KiRi Mode][Fixed][KiCad 5] We can't plot the worksheet
Browse files Browse the repository at this point in the history
Bug in Python API
  • Loading branch information
set-soft committed Jan 9, 2024
1 parent e7adc68 commit 7de33de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
* Smarter cache: changing KiCad or --zones option invalidates the cache

### Fixed
* KiRi mode for KiCad 5:
- Plotting the worksheet makes KiCad crash, disabled

## [2.5.1] - 2024-01-03
### Added
Expand Down
4 changes: 3 additions & 1 deletion kicad-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ def GenPCBImages(file, file_hash, hash_dir, file_no_ext, layer_names, wanted_lay
popt = pctl.GetPlotOptions()
popt.SetOutputDirectory(abspath(hash_dir)) # abspath: Otherwise it will be relative to the file
# Options
popt.SetPlotFrameRef(kiri_mode)
# KiCad 5 only
if kicad_version_major == 5:
popt.SetLineWidth(FromMM(0.35))
popt.SetPlotFrameRef(False)
else:
popt.SetPlotFrameRef(kiri_mode)
popt.SetMirror(False)
popt.SetUseGerberAttributes(True)
SetExcludeEdgeLayer(popt, False, board.GetLayerID('Edge.Cuts'))
Expand Down

0 comments on commit 7de33de

Please sign in to comment.