Files
kicad-action-scripts/README.md
T
Zdeněk ae5f101eda ViaStitching 1.2: KiCad 10 support, remember last values
- numeric KiCad version check (string compare broke on 10.x)
- GetBoardPolygonOutlines, PCB_VIA.GetWidth, PAD.GetEffectivePolygon: KiCad 10 API
- default grid 2.5 mm
- dialog values saved to ViaStitching.json in KiCad user settings dir
- net list: only nets with a zone, GND first and preselected
- add metadata.json
- README: KiCad 10
2026-11-15 10:23:11 +01:00

79 lines
2.4 KiB
Markdown

# This branch is the plugin for KiCad 10.0 and development version of KiCad
Please select the right branch according your KiCad version:
- master for KiCad version 10.0.* and development version of KiCad
- master for KiCad V6 (until python API changes in dev version of KiCad)
- v5.1 for KiCad version 5.1.*
- v6.0 for KiCad version 6.0.*
- v7.0 for KiCad version 7.0.*
- v8.0 for KiCad version 8.0.*
- v9.0 for KiCad version 9.0.*
# Know issues
# Old issues
- Unable to delete VIA automaticaly (since The old method - used in 5.1 - don't
work anymore) => Please manually remove the group created that own
all vias
- Via are invisible after plugin run. Need to save and reopen file to
see them => Fixed by KiCad upstream
# Some KiCad plugins in Python
Thoses plugins must be copied inside KiCad's python plugins
directory (~/.kicad_plugins or /usr/share/kicad/scripting/plugins/ for
Linux). For KiCad 10 the user plugin directory on Linux is
~/.local/share/kicad/10.0/scripting/plugins/.
Most of them use python plugin (Action plugins) in KiCad. This feature
is enabled in daily builds of KiCad.
See https://forum.kicad.info/t/howto-register-a-python-plugin-inside-pcbnew-tools-menu/5540
## ViaStitching
A pure python via stitching.
After select "Via Stitching" in Tools menu, choose your options in the
interface.
![The interface](images/via1.png)
The "Net name" list contains only nets that have a zone; GND is listed
first and preselected. The values entered in the dialog are remembered
after clicking OK and offered again on the next run. They are stored in
ViaStitching.json in the KiCad user settings directory
(~/.config/kicad/10.0/ on Linux); delete this file to get the defaults
back (via drill and clearance from the board design settings).
Then the result should be:
![The result](images/via2.png)
## CircularZone
A pure python script to create circular zone.
Select a component. This component will be used as center of the
circular zone. If no component is selected, the origin (0,0) will be
used as center.
After select "Create a circular zone" in the Tools menu, choose the
radius and the type of zone (normal or keep out).
![The interface](images/circular1.png)
A circular zone will be created. Select it to change properties:
![Select zone](images/circular2.png)
![Open properties](images/circular3.png)
Refill the area (B hotkey) then the circular zone is ready.
![Final result](images/circular4.png)