pcb_add_testpoints_for_net_class
Place testpoint pads on nets in a specified net class that lack testpoint coverage, setting fab and assembly flags for bed-of-nails or probe fixtures.
Instructions
For each net in a netclass that does NOT already have a
testpoint, place a new pad above the board outline with the
net assigned and the standard IsTestpoint /
IsAssyTestpoint flags set.
Typical workflow:
Set up a netclass in Altium called
TestPointsand add the signals you want probed (clocks, power rails, reset, debug signals).Call this tool with
net_class="TestPoints"and the pad geometry your bed-of-nails fixture requires.Open the PCB; the new pads sit in a row above the board, with the right net + testpoint flags already set.
Drag them into their final positions (or run
pcb_move_componentsif you've pre-computed where they go).
Coverage detection: a net is treated as "already covered" if
any pad or via on it carries ANY of the four testpoint flags
(so DFM tools, fab-side bed-of-nails vendors, and assembly-
side probe vendors all see the same coverage). Pass
force=True to override and place anyway.
Agent-friendly: no GUI, results returned for follow-up.
Args:
net_class: Netclass name to scan.
type: "smd" (top-layer SMD pad, no hole) or
"through_hole" (multi-layer pad with drill).
pad_size_mils: Outer pad size in mils. Default 40.
hole_size_mils: Drill diameter, only used for through-hole
testpoints. Default 20.
fab_top: Set IsTestpoint_Top (top-side bed-of-nails).
fab_bottom: Set IsTestpoint_Bottom.
assy_top: Set IsAssyTestpoint_Top (top-side assembly
probe). Default True.
assy_bottom: Set IsAssyTestpoint_Bottom.
force: Ignore existing testpoint coverage and always
place a new pad.
Returns:
Dict with {net_class, type, placed, skipped_already_covered, placed_nets[], skipped_nets[]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | smd | |
| force | No | ||
| fab_top | No | ||
| assy_top | No | ||
| net_class | Yes | ||
| fab_bottom | No | ||
| assy_bottom | No | ||
| pad_size_mils | No | ||
| hole_size_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||