audit_find_orphan_net_labels
Detect schematic net labels placed off any wire or bus to catch orphan labels that create phantom nets before fabrication.
Instructions
Find schematic net labels whose location is NOT on any wire or bus.
In Altium, a net label labels whichever wire passes through its (x, y). If the label sits in empty space (because the wire was moved during a layout pass, or was never placed), the compile produces a phantom net -- the label looks correct on paper but the signal it "names" connects to nothing under the label. ERC sometimes catches this (no driver / no load) but not always -- the other end of the same-named net often provides a load, so the violation never fires.
Spatial-iterates a 1-mil square at each net label's location
for any eWire / eBus object. Absence → orphan.
Pattern: SDK-derived. No community-script reference; surfaced
by reviewing the ISch_NetLabel interface in the Altium
Schematic API docs.
Returns:
Dict with {checked, violations, items[]} where each
item carries {label, sheet, x_mils, y_mils} for an
orphan net label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||