mikael-lovqvists-claude-agent d8eeb3425a Add Via Net Assign feature
Iterates all vias in the active selection and assigns each one to the
net of the nearest copper item (track or pad) on the board. Intended
for re-using via layouts after copying traces to a new net.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 19:16:36 +00:00
2026-03-13 17:27:40 +00:00

KiCad Layout Replicator

A KiCad PCB editor plugin that replicates component placement across hierarchical sheet instances.

Concept

When a schematic uses multiple instances of the same hierarchical sheet (e.g. four identical amplifier channels), you can place and arrange one instance manually, then use this plugin to copy that exact layout to the other instances — preserving relative positions and rotations.

How it works

  1. Pick a source sheet (the fully placed reference layout) and a target sheet
  2. Pick a reference component from the source sheet — this acts as the anchor point
  3. The corresponding component in the target sheet defines where the copy should land and at what orientation
  4. All other components in the target sheet are placed using a rigid body transform: rotated around the source reference position, then translated to the target reference position

The reference component in the target sheet must already be placed — it defines the destination and orientation of the replicated layout.

Installation

Symlink the plugin directory into your KiCad scripting plugins folder:

./local-deploy.sh

Or manually:

ln -sf "$(realpath plugins/layout_replicator)" ~/.local/share/kicad/9.0/scripting/plugins/layout_replicator

Then in the PCB editor: Tools → External Plugins → Refresh Plugins

The plugin appears as Layout Replicator under Tools → External Plugins.

Component matching

Components are matched across sheet instances using the symbol UUID from the hierarchical path — the last segment of GetPath(). This is identical for equivalent components across all instances of the same sheet, regardless of their assigned reference designators.

Description
KiCad plugin that replicates component placement across hierarchical sheet instances
Readme 59 KiB
Languages
Python 98%
Shell 2%