Zdeněk bb6815b9b2 ViaStitching 1.3: checks against poured copper, snap grid, skip markers
- clearances checked with exact shapes (round via) against pads, tracks,
  vias, copper drawings, other zones' poured copper and keepouts;
  Rectangular no longer uses square box tests
- Outline follows the poured copper edge, vias on the grid
- same-net pads: only thermal relief gap and hole-to-hole spacing
- optional zone refill before placing vias
- snap grid option (disables Grid Origin choice)
- via group mode: per net, per net and pattern, new group per run
- optional markers of skipped vias on User.Drawings with reason letter
- option to keep vias out of footprint references
- warning when "Only under selected Zone" has no zone of the net selected
- dialog: options in two columns, narrower window
2026-11-16 18:42:58 +01:00
2024-04-11 10:11:04 +02:00
2022-03-23 14:03:17 +01:00
2017-06-05 16:03:54 +02:00
2017-06-05 16:00:52 +02:00

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

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).

Options (1.3):

  • Vias are checked against the poured copper (not the zone outline) and the exact shapes of pads, tracks, vias, other zones and keepouts. "Refill zones" refills all zones before placing vias.
  • Pads of the target net only need to keep their thermal relief gap.
  • "Snap grid" (mm, 0 = off) puts every via on that grid, counted from the board Grid Origin.
  • "Via group": one group per net, per net and pattern, or a new group for every run.
  • "Mark skipped vias" draws a circle with a letter on User.Drawings where a via could not be placed: P pad, T track, Z other zone, K keepout, D copper drawing, F no poured copper, E board edge, R reference.
  • "Skip references" keeps vias out of visible footprint references.
  • "Only under selected Zone" warns when no zone of the net is selected.

Then the result should be:

The result

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

A circular zone will be created. Select it to change properties:

Select zone

Open properties

Refill the area (B hotkey) then the circular zone is ready.

Final result

S
Description
No description provided
Readme GPL-3.0
939 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%