audit_find_removed_pad_shapes
Detect pads and vias whose copper annular ring was removed on layers where it is still needed, flagging layer-instances that can cause silent PCB connection failures.
Instructions
Find pads / vias whose copper annular ring has been removed on layers where it's still needed.
Altium's "Tools → Remove Unused Pad Shapes" optimization deletes per-layer pad copper where a primitive isn't electrically used on that layer. Applied too aggressively, it leaves a via that drills through an inner layer with NO annular ring there: any later trace edit on that inner layer that tries to land on the via will silently fail to connect at fab.
Detection:
Vias:
Via.SizeOnLayer(L) <= Via.HoleSizemeans no copper left, just the drilled hole.Pads:
Pad.IsPadRemoved(L)is True.
Pattern: brett's PadShapeRemoved.pas (read-only; we surface coordinates rather than highlight on canvas).
Returns:
Dict with:
- checked: total pads + vias inspected
- violations: how many layer-instances are flagged
(one via removed on 3 layers counts as 3)
- items: per-violation {kind, designator, net, layer, at} where at is "(x,y)" mils.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||