obj_crossref_net
Compare schematic vs PCB membership for a named net to expose pins or pads missing from either side and diagnose stale or broken connections.
Instructions
Compare the schematic vs PCB membership of a named net.
Returns the full pin list the SCHEMATIC assigns to this net alongside the pad list the PCB assigns to the same net, plus the diff in each direction.
USE THIS when:
proj_get_nets/proj_get_connectivityreturns an answer that surprises you or the user (e.g. a net appears to be missing a pin you expect on it, or appears to be disconnected from a component you know is wired).Investigating "board works but schematic says otherwise": a non-empty
pcb_onlylist means the PCB was fabricated from an older schematic revision, or an edit broke the post-ECO merge.Design > Update PCB from Schematicwould rip up those PCB connections.Debugging ECO workflow issues.
Args: net_name: Exact net name as it appears in the schematic (case-sensitive).
Returns:
Dict with:
- net_name
- sch_pin_count, pcb_pin_count
- matched (count of pins present on both sides)
- sch_only_count, pcb_only_count
- in_sync (True only when both sides list the same pins
AND the net exists on at least one side)
- sch_pins[], pcb_pins[], each entry is
"Designator.PinNumber"
- sch_only[], pcb_only[], the diff lists. If
sch_only is non-empty the PCB is missing those
connections. If pcb_only is non-empty the PCB has
stale connections the current schematic doesn't have.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||